Struct ruma_common::KeyName
source · [−]#[repr(transparent)]pub struct KeyName(_);
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
sourceimpl AsRef<KeyName> for OwnedKeyName
impl AsRef<KeyName> for OwnedKeyName
sourceimpl Borrow<KeyName> for OwnedKeyName
impl Borrow<KeyName> for OwnedKeyName
sourceimpl<'de> Deserialize<'de> for Box<KeyName>
impl<'de> Deserialize<'de> for Box<KeyName>
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<&KeyName> for OwnedKeyName
impl From<&KeyName> for OwnedKeyName
sourcefn from(id: &KeyName) -> OwnedKeyName
fn from(id: &KeyName) -> OwnedKeyName
Converts to this type from the input type.
sourceimpl Ord for KeyName
impl Ord for KeyName
sourceimpl PartialEq<&KeyName> for OwnedKeyName
impl PartialEq<&KeyName> for OwnedKeyName
sourceimpl PartialEq<KeyName> for OwnedKeyName
impl PartialEq<KeyName> for OwnedKeyName
sourceimpl PartialEq<OwnedKeyName> for KeyName
impl PartialEq<OwnedKeyName> for KeyName
sourceimpl PartialEq<OwnedKeyName> for &KeyName
impl PartialEq<OwnedKeyName> for &KeyName
sourceimpl PartialEq<OwnedKeyName> for Box<KeyName>
impl PartialEq<OwnedKeyName> for Box<KeyName>
sourceimpl PartialOrd<KeyName> for KeyName
impl PartialOrd<KeyName> for KeyName
sourcefn partial_cmp(&self, other: &KeyName) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyName) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl ToOwned for KeyName
impl ToOwned for KeyName
type Owned = OwnedKeyName
type Owned = OwnedKeyName
The resulting type after obtaining ownership.
sourcefn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.