Struct ruma_identifiers::RoomAliasId [−][src]
pub struct RoomAliasId { /* fields omitted */ }Expand description
A Matrix room alias ID.
A RoomAliasId is converted from a string slice, and can be converted back into a string as
needed.
assert_eq!( RoomAliasId::try_from("#ruma:example.com").unwrap().as_ref(), "#ruma:example.com" );
Implementations
impl RoomAliasId[src]
impl RoomAliasId[src]pub fn server_name(&self) -> &ServerName[src]
pub fn server_name(&self) -> &ServerName[src]Returns the server name of the room alias ID.
impl RoomAliasId[src]
impl RoomAliasId[src]pub fn into_string(self) -> String[src]
pub fn into_string(self) -> String[src]Converts this RoomAliasId into a String
pub fn into_bytes(self) -> Vec<u8>[src]
pub fn into_bytes(self) -> Vec<u8>[src]Converts this RoomAliasId into a Vec<u8>
Trait Implementations
impl Clone for RoomAliasId[src]
impl Clone for RoomAliasId[src]fn clone(&self) -> RoomAliasId[src]
fn clone(&self) -> RoomAliasId[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for RoomAliasId[src]
impl Debug for RoomAliasId[src]impl<'de> Deserialize<'de> for RoomAliasId[src]
impl<'de> Deserialize<'de> for RoomAliasId[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl Display for RoomAliasId[src]
impl Display for RoomAliasId[src]impl From<RoomAliasId> for RoomIdOrAliasId[src]
impl From<RoomAliasId> for RoomIdOrAliasId[src]fn from(_: RoomAliasId) -> Self[src]
fn from(_: RoomAliasId) -> Self[src]Performs the conversion.
impl FromStr for RoomAliasId[src]
impl FromStr for RoomAliasId[src]impl Hash for RoomAliasId[src]
impl Hash for RoomAliasId[src]impl Ord for RoomAliasId[src]
impl Ord for RoomAliasId[src]impl PartialEq<&'_ str> for RoomAliasId[src]
impl PartialEq<&'_ str> for RoomAliasId[src]impl PartialEq<RoomAliasId> for RoomAliasId[src]
impl PartialEq<RoomAliasId> for RoomAliasId[src]impl PartialEq<String> for RoomAliasId[src]
impl PartialEq<String> for RoomAliasId[src]impl PartialEq<str> for RoomAliasId[src]
impl PartialEq<str> for RoomAliasId[src]impl PartialOrd<RoomAliasId> for RoomAliasId[src]
impl PartialOrd<RoomAliasId> for RoomAliasId[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Serialize for RoomAliasId[src]
impl Serialize for RoomAliasId[src]impl TryFrom<&'_ str> for RoomAliasId[src]
impl TryFrom<&'_ str> for RoomAliasId[src]impl TryFrom<RoomIdOrAliasId> for RoomAliasId[src]
impl TryFrom<RoomIdOrAliasId> for RoomAliasId[src]fn try_from(id: RoomIdOrAliasId) -> Result<RoomAliasId, RoomId>[src]
fn try_from(id: RoomIdOrAliasId) -> Result<RoomAliasId, RoomId>[src]Performs the conversion.
impl TryFrom<String> for RoomAliasId[src]
impl TryFrom<String> for RoomAliasId[src]impl Eq for RoomAliasId[src]
Auto Trait Implementations
impl RefUnwindSafe for RoomAliasId
impl Send for RoomAliasId
impl Sync for RoomAliasId
impl Unpin for RoomAliasId
impl UnwindSafe for RoomAliasId
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,