Enum ruma_events::tag::TagName [−][src]
pub enum TagName { Favorite, LowPriority, ServerNotice, User(UserTagName), // some variants omitted }
Expand description
The name of a tag.
Variants
m.favourite
: The user’s favorite rooms. These should be shown with higher precedence
than other rooms.
m.lowpriority
: These should be shown with lower precedence than others.
m.server_notice
: Used to identify
Server Notice Rooms.
User(UserTagName)
u.*
: User-defined tag
Implementations
Returns the display name of the tag.
That means the string after m.
or u.
for spec- and user-defined tag names, and the
string after the last dot for custom tags. If no dot is found, returns the whole string.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for TagName
impl UnwindSafe for TagName
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V