pub struct SafetyState {
pub status: SafetyStatus,
pub content_hash: Option<String>,
pub checked_at: Option<String>,
pub vague_reason: Option<String>,
}Fields§
§status: SafetyStatus§content_hash: Option<String>§checked_at: Option<String>§vague_reason: Option<String>Implementations§
Source§impl SafetyState
impl SafetyState
Sourcepub fn is_approved_for(&self, content: &str) -> bool
pub fn is_approved_for(&self, content: &str) -> bool
True iff safety has approved the exact current content (no hash drift).
Trait Implementations§
Source§impl Clone for SafetyState
impl Clone for SafetyState
Source§fn clone(&self) -> SafetyState
fn clone(&self) -> SafetyState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SafetyState
impl Debug for SafetyState
Source§impl Default for SafetyState
impl Default for SafetyState
Source§fn default() -> SafetyState
fn default() -> SafetyState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SafetyState
impl<'de> Deserialize<'de> for SafetyState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SafetyState
impl RefUnwindSafe for SafetyState
impl Send for SafetyState
impl Sync for SafetyState
impl Unpin for SafetyState
impl UnsafeUnpin for SafetyState
impl UnwindSafe for SafetyState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more