Struct atrium_api::com::atproto::label::defs::LabelValueDefinition
source · pub struct LabelValueDefinition {
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 interpertations 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 LabelValueDefinition
impl Clone for LabelValueDefinition
source§fn clone(&self) -> LabelValueDefinition
fn clone(&self) -> LabelValueDefinition
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 LabelValueDefinition
impl Debug for LabelValueDefinition
source§impl<'de> Deserialize<'de> for LabelValueDefinition
impl<'de> Deserialize<'de> for LabelValueDefinition
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 LabelValueDefinition
impl PartialEq for LabelValueDefinition
source§fn eq(&self, other: &LabelValueDefinition) -> bool
fn eq(&self, other: &LabelValueDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for LabelValueDefinition
impl Serialize for LabelValueDefinition
impl Eq for LabelValueDefinition
impl StructuralPartialEq for LabelValueDefinition
Auto Trait Implementations§
impl Freeze for LabelValueDefinition
impl RefUnwindSafe for LabelValueDefinition
impl Send for LabelValueDefinition
impl Sync for LabelValueDefinition
impl Unpin for LabelValueDefinition
impl UnwindSafe for LabelValueDefinition
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