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: String
What 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: String
The value of the label being defined. Must only include lowercase ascii and the ‘-’ character ([a-z-]+).
locales: Vec<LabelValueDefinitionStrings>
§severity: String
How 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 duplicate 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§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.