Struct matrix_sdk_base::ruma::KeyName
pub struct KeyName(/* private fields */);
Expand description
A Matrix key identifier.
Key identifiers in Matrix are opaque character sequences of [a-zA-Z_]
. This type is
provided simply for its semantic value.
Implementations§
Trait Implementations§
§impl AsRef<KeyName> for OwnedKeyName
impl AsRef<KeyName> for OwnedKeyName
§impl Borrow<KeyName> for OwnedKeyName
impl Borrow<KeyName> for OwnedKeyName
§impl<'de> Deserialize<'de> for Box<KeyName>
impl<'de> Deserialize<'de> for Box<KeyName>
§fn deserialize<D>(
deserializer: D
) -> Result<Box<KeyName>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Box<KeyName>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<&KeyName> for OwnedKeyName
impl From<&KeyName> for OwnedKeyName
§fn from(id: &KeyName) -> OwnedKeyName
fn from(id: &KeyName) -> OwnedKeyName
Converts to this type from the input type.
§impl From<OwnedKeyName> for Box<KeyName>
impl From<OwnedKeyName> for Box<KeyName>
§fn from(a: OwnedKeyName) -> Box<KeyName>
fn from(a: OwnedKeyName) -> Box<KeyName>
Converts to this type from the input type.
§impl PartialEq<&KeyName> for OwnedKeyName
impl PartialEq<&KeyName> for OwnedKeyName
§impl PartialEq<Box<KeyName>> for &KeyName
impl PartialEq<Box<KeyName>> for &KeyName
§impl PartialEq<Box<KeyName>> for KeyName
impl PartialEq<Box<KeyName>> for KeyName
§impl PartialEq<KeyName> for OwnedKeyName
impl PartialEq<KeyName> for OwnedKeyName
§impl PartialEq<OwnedKeyName> for &KeyName
impl PartialEq<OwnedKeyName> for &KeyName
§fn eq(&self, other: &OwnedKeyName) -> bool
fn eq(&self, other: &OwnedKeyName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<OwnedKeyName> for KeyName
impl PartialEq<OwnedKeyName> for KeyName
§fn eq(&self, other: &OwnedKeyName) -> bool
fn eq(&self, other: &OwnedKeyName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for KeyName
impl PartialOrd for KeyName
§fn partial_cmp(&self, other: &KeyName) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyName) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl Serialize for KeyName
impl Serialize for KeyName
§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 ToOwned for KeyName
impl ToOwned for KeyName
§type Owned = OwnedKeyName
type Owned = OwnedKeyName
The resulting type after obtaining ownership.
§fn to_owned(&self) -> <KeyName as ToOwned>::Owned
fn to_owned(&self) -> <KeyName as ToOwned>::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for KeyName
impl StructuralEq for KeyName
impl StructuralPartialEq for KeyName
Auto Trait Implementations§
impl RefUnwindSafe for KeyName
impl Send for KeyName
impl !Sized for KeyName
impl Sync for KeyName
impl Unpin for KeyName
impl UnwindSafe for KeyName
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.