pub enum MatrixToItem<'a> {
Event(&'a RoomId, &'a EventId),
User(&'a UserId),
Group(&'a String),
}
Expand description
An item that can be represented using a matrix.to URL.
Variants§
Event(&'a RoomId, &'a EventId)
An event, since event IDs are room local a RoomId is required.
User(&'a UserId)
An ID of an user.
Group(&'a String)
A ID to a group, the first character must be an +.
Implementations§
Source§impl<'a> MatrixToItem<'a>
impl<'a> MatrixToItem<'a>
Sourcepub fn to_url_string(&self) -> String
pub fn to_url_string(&self) -> String
Convert the current MatrixToItem
into a String
.
Trait Implementations§
Source§impl<'a> Clone for MatrixToItem<'a>
impl<'a> Clone for MatrixToItem<'a>
Source§fn clone(&self) -> MatrixToItem<'a>
fn clone(&self) -> MatrixToItem<'a>
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<'a> Debug for MatrixToItem<'a>
impl<'a> Debug for MatrixToItem<'a>
Source§impl<'a> Hash for MatrixToItem<'a>
impl<'a> Hash for MatrixToItem<'a>
Source§impl<'a> PartialEq for MatrixToItem<'a>
impl<'a> PartialEq for MatrixToItem<'a>
impl<'a> Eq for MatrixToItem<'a>
impl<'a> StructuralPartialEq for MatrixToItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for MatrixToItem<'a>
impl<'a> RefUnwindSafe for MatrixToItem<'a>
impl<'a> Send for MatrixToItem<'a>
impl<'a> Sync for MatrixToItem<'a>
impl<'a> Unpin for MatrixToItem<'a>
impl<'a> UnwindSafe for MatrixToItem<'a>
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.