#[repr(u32)]pub enum NotificationsRoomSetting {
Global = 0,
All = 1,
MentionsOnly = 2,
Mute = 3,
}
Expand description
The possible values for a room notifications setting.
Variants§
Global = 0
Use the global setting.
All = 1
All messages.
MentionsOnly = 2
Only mentions and keywords.
Mute = 3
No notifications.
Implementations§
Source§impl NotificationsRoomSetting
impl NotificationsRoomSetting
Sourcefn register_enum() -> Type
fn register_enum() -> Type
Registers the enum only once.
Source§impl NotificationsRoomSetting
impl NotificationsRoomSetting
Sourcefn to_notification_mode(self) -> Option<RoomNotificationMode>
fn to_notification_mode(self) -> Option<RoomNotificationMode>
Convert to a RoomNotificationMode
.
Trait Implementations§
Source§impl Clone for NotificationsRoomSetting
impl Clone for NotificationsRoomSetting
Source§fn clone(&self) -> NotificationsRoomSetting
fn clone(&self) -> NotificationsRoomSetting
Returns a copy 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 NotificationsRoomSetting
impl Debug for NotificationsRoomSetting
Source§impl Default for NotificationsRoomSetting
impl Default for NotificationsRoomSetting
Source§fn default() -> NotificationsRoomSetting
fn default() -> NotificationsRoomSetting
Returns the “default value” for a type. Read more
Source§impl Display for NotificationsRoomSetting
impl Display for NotificationsRoomSetting
Source§impl From<NotificationsRoomSetting> for Value
impl From<NotificationsRoomSetting> for Value
Source§fn from(v: NotificationsRoomSetting) -> Self
fn from(v: NotificationsRoomSetting) -> Self
Converts to this type from the input type.
Source§impl From<RoomNotificationMode> for NotificationsRoomSetting
impl From<RoomNotificationMode> for NotificationsRoomSetting
Source§fn from(value: RoomNotificationMode) -> Self
fn from(value: RoomNotificationMode) -> Self
Converts to this type from the input type.
Source§impl FromGlib<i32> for NotificationsRoomSetting
impl FromGlib<i32> for NotificationsRoomSetting
Source§impl FromStr for NotificationsRoomSetting
impl FromStr for NotificationsRoomSetting
Source§impl<'a> FromValue<'a> for NotificationsRoomSetting
impl<'a> FromValue<'a> for NotificationsRoomSetting
Source§type Checker = GenericValueTypeChecker<NotificationsRoomSetting>
type Checker = GenericValueTypeChecker<NotificationsRoomSetting>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl HasParamSpec for NotificationsRoomSetting
impl HasParamSpec for NotificationsRoomSetting
type ParamSpec = ParamSpecEnum
Source§type SetValue = NotificationsRoomSetting
type SetValue = NotificationsRoomSetting
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: NotificationsRoomSetting) -> ParamSpecEnumBuilder<'_, NotificationsRoomSetting>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for NotificationsRoomSetting
impl Hash for NotificationsRoomSetting
Source§impl IntoGlib for NotificationsRoomSetting
impl IntoGlib for NotificationsRoomSetting
Source§impl PartialEq for NotificationsRoomSetting
impl PartialEq for NotificationsRoomSetting
Source§impl StaticType for NotificationsRoomSetting
impl StaticType for NotificationsRoomSetting
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for NotificationsRoomSetting
impl ToValue for NotificationsRoomSetting
Source§impl TryFrom<&str> for NotificationsRoomSetting
impl TryFrom<&str> for NotificationsRoomSetting
Source§impl TryFromGlib<i32> for NotificationsRoomSetting
impl TryFromGlib<i32> for NotificationsRoomSetting
Source§impl ValueType for NotificationsRoomSetting
impl ValueType for NotificationsRoomSetting
Source§type Type = NotificationsRoomSetting
type Type = NotificationsRoomSetting
Type to get the
Type
from. Read moreimpl Copy for NotificationsRoomSetting
impl Eq for NotificationsRoomSetting
impl StructuralPartialEq for NotificationsRoomSetting
Auto Trait Implementations§
impl Freeze for NotificationsRoomSetting
impl RefUnwindSafe for NotificationsRoomSetting
impl Send for NotificationsRoomSetting
impl Sync for NotificationsRoomSetting
impl Unpin for NotificationsRoomSetting
impl UnwindSafe for NotificationsRoomSetting
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, 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> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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 moreSource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.