Struct ruma::thirdparty::Location
source · [−]pub struct Location {
pub alias: OwnedRoomAliasId,
pub protocol: String,
pub fields: BTreeMap<String, String, Global>,
}
Expand description
A third party network location.
Fields
alias: OwnedRoomAliasId
An alias for a matrix room.
protocol: String
The protocol ID that the third party location is a part of.
fields: BTreeMap<String, String, Global>
Information used to identify this third party location.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Location, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Location, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Location
impl Serialize for Location
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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