pub struct Room<'a> {
pub id: Cow<'a, str>,
}Expand description
A Matrix room. This object is a thin wrapper over a room ID.
This is defined in this crate (gm-types) in order that it can be
deserialized. However, most of the interesting methods are actually defined
on RoomExt, or are part of the RoomClient struct in the main crate.
Fields§
§id: Cow<'a, str>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Room<'static>
impl<'de> Deserialize<'de> for Room<'static>
Source§fn deserialize<D>(
de: D,
) -> Result<Room<'static>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
de: D,
) -> Result<Room<'static>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Ord for Room<'a>
impl<'a> Ord for Room<'a>
Source§impl<'a> PartialOrd for Room<'a>
impl<'a> PartialOrd for Room<'a>
Source§impl<'a> RoomExt<'a> for Room<'a>
impl<'a> RoomExt<'a> for Room<'a>
Source§fn cli<'b, 'c, T>(&'b self, cli: &'c mut T) -> RoomClient<'b, 'a, 'c, T>where
T: MatrixRequestable,
fn cli<'b, 'c, T>(&'b self, cli: &'c mut T) -> RoomClient<'b, 'a, 'c, T>where
T: MatrixRequestable,
Use an implementor of
MatrixRequestable to make a RoomClient, an object used to call
endpoints relating to rooms. Read moreSource§impl<'a> Serialize for Room<'a>
impl<'a> Serialize for Room<'a>
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Eq for Room<'a>
impl<'a> StructuralPartialEq for Room<'a>
Auto Trait Implementations§
impl<'a> Freeze for Room<'a>
impl<'a> RefUnwindSafe for Room<'a>
impl<'a> Send for Room<'a>
impl<'a> Sync for Room<'a>
impl<'a> Unpin for Room<'a>
impl<'a> UnwindSafe for Room<'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.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 more