pub struct ModerationPrefs {
pub adult_content_enabled: bool,
pub labels: HashMap<String, LabelPreference>,
pub labelers: Vec<ModerationPrefsLabeler>,
pub muted_words: Vec<MutedWord>,
pub hidden_posts: Vec<String>,
}Expand description
User moderation preferences.
Fields§
§adult_content_enabled: bool§labels: HashMap<String, LabelPreference>§labelers: Vec<ModerationPrefsLabeler>§muted_words: Vec<MutedWord>Trait Implementations§
Source§impl Clone for ModerationPrefs
impl Clone for ModerationPrefs
Source§fn clone(&self) -> ModerationPrefs
fn clone(&self) -> ModerationPrefs
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 ModerationPrefs
impl Debug for ModerationPrefs
Source§impl<'de> Deserialize<'de> for ModerationPrefs
impl<'de> Deserialize<'de> for ModerationPrefs
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 ModerationPrefs
impl RefUnwindSafe for ModerationPrefs
impl Send for ModerationPrefs
impl Sync for ModerationPrefs
impl Unpin for ModerationPrefs
impl UnsafeUnpin for ModerationPrefs
impl UnwindSafe for ModerationPrefs
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