pub struct SyncedSettings {
pub v: u32,
pub advanced: bool,
pub streamer: StreamerSettings,
pub players_off: bool,
pub other: Map<String, Value>,
}Expand description
Account-wide switches that follow the user between devices.
Keys this build does not know are carried through untouched: the document is newest-wins as a whole, so an older device that dropped them on republish would erase settings a newer one added.
Fields§
§v: u32§advanced: boolReveals identifiers and other developer-facing detail across the app.
streamer: StreamerSettings§players_off: boolEmbedded video players (click to play) are switched off. Stored as the opt-out so every default, an empty or unreadable document included, keeps them on.
other: Map<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for SyncedSettings
impl Clone for SyncedSettings
Source§impl Debug for SyncedSettings
impl Debug for SyncedSettings
Source§impl Default for SyncedSettings
impl Default for SyncedSettings
Source§impl<'de> Deserialize<'de> for SyncedSettings
impl<'de> Deserialize<'de> for SyncedSettings
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 SyncedSettings
impl PartialEq for SyncedSettings
Source§impl Serialize for SyncedSettings
impl Serialize for SyncedSettings
impl StructuralPartialEq for SyncedSettings
Auto Trait Implementations§
impl Forget for SyncedSettings
impl Freeze for SyncedSettings
impl Move for SyncedSettings
impl RefUnwindSafe for SyncedSettings
impl Send for SyncedSettings
impl Sync for SyncedSettings
impl Unpin for SyncedSettings
impl UnsafeUnpin for SyncedSettings
impl UnwindSafe for SyncedSettings
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