pub struct StreamerSettings {
pub on: bool,
pub seed: String,
pub notif: String,
pub hide_wallpapers: bool,
pub other: Map<String, Value>,
}Expand description
Streamer Mode: masks everyone who has not opted in, on every device of the account.
Fields§
§on: bool§seed: String16 random bytes as lowercase hex, re-minted at each go-live so per-stream colours reshuffle.
notif: StringWhat notifications additionally hide while live, one of STREAMER_NOTIF_LEVELS.
hide_wallpapers: boolChats show a plain background while live: a DM’s wallpaper can say who it is with.
other: Map<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for StreamerSettings
impl Clone for StreamerSettings
Source§impl Debug for StreamerSettings
impl Debug for StreamerSettings
Source§impl Default for StreamerSettings
impl Default for StreamerSettings
Source§impl<'de> Deserialize<'de> for StreamerSettings
impl<'de> Deserialize<'de> for StreamerSettings
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 StreamerSettings
impl PartialEq for StreamerSettings
Source§impl Serialize for StreamerSettings
impl Serialize for StreamerSettings
impl StructuralPartialEq for StreamerSettings
Auto Trait Implementations§
impl Forget for StreamerSettings
impl Freeze for StreamerSettings
impl Move for StreamerSettings
impl RefUnwindSafe for StreamerSettings
impl Send for StreamerSettings
impl Sync for StreamerSettings
impl Unpin for StreamerSettings
impl UnsafeUnpin for StreamerSettings
impl UnwindSafe for StreamerSettings
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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