Enum ruma_identifiers::matrix_uri::MatrixId
source · [−]#[non_exhaustive]
pub enum MatrixId {
Room(Box<RoomId>),
RoomAlias(Box<RoomAliasId>),
User(Box<UserId>),
Event(Box<RoomOrAliasId>, Box<EventId>),
}
Expand description
All Matrix Identifiers that can be represented as a Matrix URI.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Room(Box<RoomId>)
A room ID.
RoomAlias(Box<RoomAliasId>)
A room alias.
User(Box<UserId>)
A user ID.
Event(Box<RoomOrAliasId>, Box<EventId>)
An event ID.
Trait Implementations
sourceimpl From<&'_ RoomAliasId> for MatrixId
impl From<&'_ RoomAliasId> for MatrixId
sourcefn from(room_alias: &RoomAliasId) -> Self
fn from(room_alias: &RoomAliasId) -> Self
Converts to this type from the input type.
impl Eq for MatrixId
impl StructuralEq for MatrixId
impl StructuralPartialEq for MatrixId
Auto Trait Implementations
impl RefUnwindSafe for MatrixId
impl Send for MatrixId
impl Sync for MatrixId
impl Unpin for MatrixId
impl UnwindSafe for MatrixId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more