Struct atrium_api::com::atproto::label::defs::LabelValueDefinitionData
source · pub struct LabelValueDefinitionData {
pub adult_only: Option<bool>,
pub blurs: String,
pub default_setting: Option<String>,
pub identifier: String,
pub locales: Vec<LabelValueDefinitionStrings>,
pub severity: String,
}Expand description
Declares a label value and its expected interpretations and behaviors.
Fields§
§adult_only: Option<bool>Does the user need to have adult content enabled in order to configure this label?
blurs: StringWhat should this label hide in the UI, if applied? ‘content’ hides all of the target; ‘media’ hides the images/video/audio; ‘none’ hides nothing.
default_setting: Option<String>The default setting for this label.
identifier: StringThe value of the label being defined. Must only include lowercase ascii and the ‘-’ character ([a-z-]+).
locales: Vec<LabelValueDefinitionStrings>§severity: StringHow should a client visually convey this label? ‘inform’ means neutral and informational; ‘alert’ means negative and warning; ‘none’ means show nothing.
Trait Implementations§
source§impl Clone for LabelValueDefinitionData
impl Clone for LabelValueDefinitionData
source§fn clone(&self) -> LabelValueDefinitionData
fn clone(&self) -> LabelValueDefinitionData
Returns a copy of the value. Read more
1.0.0 · 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 LabelValueDefinitionData
impl Debug for LabelValueDefinitionData
source§impl<'de> Deserialize<'de> for LabelValueDefinitionData
impl<'de> Deserialize<'de> for LabelValueDefinitionData
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
source§impl PartialEq for LabelValueDefinitionData
impl PartialEq for LabelValueDefinitionData
source§impl Serialize for LabelValueDefinitionData
impl Serialize for LabelValueDefinitionData
impl Eq for LabelValueDefinitionData
impl StructuralPartialEq for LabelValueDefinitionData
Auto Trait Implementations§
impl Freeze for LabelValueDefinitionData
impl RefUnwindSafe for LabelValueDefinitionData
impl Send for LabelValueDefinitionData
impl Sync for LabelValueDefinitionData
impl Unpin for LabelValueDefinitionData
impl UnwindSafe for LabelValueDefinitionData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.