pub(super) enum MediaPreviewsGlobalSetting {
All,
Private,
None,
}Expand description
Possible values of the global setting about which rooms display media previews.
Legacy setting from version 0 of the stored settings.
Variants§
All
All rooms show media previews.
Private
Only private rooms show media previews.
None
No rooms show media previews.
Trait Implementations§
Source§impl Clone for MediaPreviewsGlobalSetting
impl Clone for MediaPreviewsGlobalSetting
Source§fn clone(&self) -> MediaPreviewsGlobalSetting
fn clone(&self) -> MediaPreviewsGlobalSetting
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 MediaPreviewsGlobalSetting
impl Debug for MediaPreviewsGlobalSetting
Source§impl Default for MediaPreviewsGlobalSetting
impl Default for MediaPreviewsGlobalSetting
Source§fn default() -> MediaPreviewsGlobalSetting
fn default() -> MediaPreviewsGlobalSetting
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MediaPreviewsGlobalSetting
impl<'de> Deserialize<'de> for MediaPreviewsGlobalSetting
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 From<MediaPreviewsGlobalSetting> for MediaPreviews
impl From<MediaPreviewsGlobalSetting> for MediaPreviews
Source§fn from(value: MediaPreviewsGlobalSetting) -> Self
fn from(value: MediaPreviewsGlobalSetting) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MediaPreviewsGlobalSetting
impl RefUnwindSafe for MediaPreviewsGlobalSetting
impl Send for MediaPreviewsGlobalSetting
impl Sync for MediaPreviewsGlobalSetting
impl Unpin for MediaPreviewsGlobalSetting
impl UnsafeUnpin for MediaPreviewsGlobalSetting
impl UnwindSafe for MediaPreviewsGlobalSetting
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<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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