pub enum ContentPrivacy {
Full,
HideContent,
HideSender,
HideAll,
}Expand description
How much of a message a system notification reveals: the account’s
notif_content_privacy setting, read at notify time.
Variants§
Full
Sender and message.
HideContent
Who wrote, not what.
HideSender
What was written, not who.
HideAll
Only that something arrived.
Implementations§
Source§impl ContentPrivacy
impl ContentPrivacy
Sourcepub fn load() -> Self
pub fn load() -> Self
What a notification may reveal right now: the account’s setting, joined with the streaming overlay while Streamer Mode is on.
Sourcepub fn effective(base: Self, streamer: &StreamerSettings) -> Self
pub fn effective(base: Self, streamer: &StreamerSettings) -> Self
Joined before applying: applying two levels in turn does not hide what their union does.
Trait Implementations§
Source§impl Clone for ContentPrivacy
impl Clone for ContentPrivacy
impl Copy for ContentPrivacy
Source§impl Debug for ContentPrivacy
impl Debug for ContentPrivacy
impl Eq for ContentPrivacy
Source§impl PartialEq for ContentPrivacy
impl PartialEq for ContentPrivacy
impl StructuralPartialEq for ContentPrivacy
Auto Trait Implementations§
impl Forget for ContentPrivacy
impl Freeze for ContentPrivacy
impl Move for ContentPrivacy
impl RefUnwindSafe for ContentPrivacy
impl Send for ContentPrivacy
impl Sync for ContentPrivacy
impl Unpin for ContentPrivacy
impl UnsafeUnpin for ContentPrivacy
impl UnwindSafe for ContentPrivacy
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more