pub enum SidebarSectionName {
VerificationRequest,
Invited,
Favorite,
Normal,
LowPriority,
Left,
}
Expand description
The possible names of the sections in the sidebar.
Variants§
VerificationRequest
The section for verification requests.
Invited
The section for room invites.
Favorite
The section for favorite rooms.
Normal
The section for joined rooms without a tag.
LowPriority
The section for low-priority rooms.
Left
The section for room that were left.
Implementations§
Source§impl SidebarSectionName
impl SidebarSectionName
Sourcefn register_enum() -> Type
fn register_enum() -> Type
Registers the enum only once.
Source§impl SidebarSectionName
impl SidebarSectionName
Sourcepub(crate) fn from_room_category(category: RoomCategory) -> Option<Self>
pub(crate) fn from_room_category(category: RoomCategory) -> Option<Self>
Convert the given RoomCategory
to a SidebarSectionName
, if possible.
Sourcepub(crate) fn into_room_category(self) -> Option<RoomCategory>
pub(crate) fn into_room_category(self) -> Option<RoomCategory>
Convert this SidebarSectionName
to a RoomCategory
, if possible.
Sourcepub(crate) fn into_target_room_category(self) -> Option<TargetRoomCategory>
pub(crate) fn into_target_room_category(self) -> Option<TargetRoomCategory>
Convert this SidebarSectionName
to a TargetRoomCategory
, if
possible.
Trait Implementations§
Source§impl Clone for SidebarSectionName
impl Clone for SidebarSectionName
Source§fn clone(&self) -> SidebarSectionName
fn clone(&self) -> SidebarSectionName
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 SidebarSectionName
impl Debug for SidebarSectionName
Source§impl Default for SidebarSectionName
impl Default for SidebarSectionName
Source§fn default() -> SidebarSectionName
fn default() -> SidebarSectionName
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SidebarSectionName
impl<'de> Deserialize<'de> for SidebarSectionName
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 Display for SidebarSectionName
impl Display for SidebarSectionName
Source§impl From<SidebarSectionName> for Value
impl From<SidebarSectionName> for Value
Source§fn from(v: SidebarSectionName) -> Self
fn from(v: SidebarSectionName) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for SidebarSectionName
impl<'a> FromValue<'a> for SidebarSectionName
Source§type Checker = GenericValueTypeChecker<SidebarSectionName>
type Checker = GenericValueTypeChecker<SidebarSectionName>
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 SidebarSectionName
impl HasParamSpec for SidebarSectionName
type ParamSpec = ParamSpecEnum
Source§type SetValue = SidebarSectionName
type SetValue = SidebarSectionName
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: SidebarSectionName) -> ParamSpecEnumBuilder<'_, SidebarSectionName>
fn param_spec_builder() -> Self::BuilderFn
Source§impl IntoGlib for SidebarSectionName
impl IntoGlib for SidebarSectionName
Source§impl Ord for SidebarSectionName
impl Ord for SidebarSectionName
Source§fn cmp(&self, other: &SidebarSectionName) -> Ordering
fn cmp(&self, other: &SidebarSectionName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SidebarSectionName
impl PartialEq for SidebarSectionName
Source§impl PartialOrd for SidebarSectionName
impl PartialOrd for SidebarSectionName
Source§impl Serialize for SidebarSectionName
impl Serialize for SidebarSectionName
Source§impl StaticType for SidebarSectionName
impl StaticType for SidebarSectionName
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for SidebarSectionName
impl ToValue for SidebarSectionName
Source§impl TryFromGlib<i32> for SidebarSectionName
impl TryFromGlib<i32> for SidebarSectionName
Source§impl ValueType for SidebarSectionName
impl ValueType for SidebarSectionName
Source§type Type = SidebarSectionName
type Type = SidebarSectionName
Type to get the
Type
from. Read moreimpl Copy for SidebarSectionName
impl Eq for SidebarSectionName
impl StructuralPartialEq for SidebarSectionName
Auto Trait Implementations§
impl Freeze for SidebarSectionName
impl RefUnwindSafe for SidebarSectionName
impl Send for SidebarSectionName
impl Sync for SidebarSectionName
impl Unpin for SidebarSectionName
impl UnwindSafe for SidebarSectionName
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
.