Struct ruma::OneTimeKeyName
source · pub struct OneTimeKeyName(/* private fields */);
Expand description
The name of a one-time or fallback key.
One-time and fallback key names in Matrix are completely opaque character sequences. This type is provided simply for its semantic value.
Implementations§
Trait Implementations§
source§impl AsRef<[u8]> for OneTimeKeyName
impl AsRef<[u8]> for OneTimeKeyName
source§impl AsRef<OneTimeKeyName> for OneTimeKeyName
impl AsRef<OneTimeKeyName> for OneTimeKeyName
source§fn as_ref(&self) -> &OneTimeKeyName
fn as_ref(&self) -> &OneTimeKeyName
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<OneTimeKeyName> for OwnedOneTimeKeyName
impl AsRef<OneTimeKeyName> for OwnedOneTimeKeyName
source§fn as_ref(&self) -> &OneTimeKeyName
fn as_ref(&self) -> &OneTimeKeyName
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for OneTimeKeyName
impl AsRef<str> for OneTimeKeyName
source§impl Borrow<OneTimeKeyName> for OwnedOneTimeKeyName
impl Borrow<OneTimeKeyName> for OwnedOneTimeKeyName
source§fn borrow(&self) -> &OneTimeKeyName
fn borrow(&self) -> &OneTimeKeyName
Immutably borrows from an owned value. Read more
source§impl Clone for Box<OneTimeKeyName>
impl Clone for Box<OneTimeKeyName>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OneTimeKeyName
impl Debug for OneTimeKeyName
source§impl<'de> Deserialize<'de> for Box<OneTimeKeyName>
impl<'de> Deserialize<'de> for Box<OneTimeKeyName>
source§fn deserialize<D>(
deserializer: D,
) -> Result<Box<OneTimeKeyName>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Box<OneTimeKeyName>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for OneTimeKeyName
impl Display for OneTimeKeyName
source§impl From<&OneTimeKeyName> for Arc<OneTimeKeyName>
impl From<&OneTimeKeyName> for Arc<OneTimeKeyName>
source§fn from(s: &OneTimeKeyName) -> Arc<OneTimeKeyName>
fn from(s: &OneTimeKeyName) -> Arc<OneTimeKeyName>
Converts to this type from the input type.
source§impl From<&OneTimeKeyName> for Box<OneTimeKeyName>
impl From<&OneTimeKeyName> for Box<OneTimeKeyName>
source§fn from(id: &OneTimeKeyName) -> Box<OneTimeKeyName>
fn from(id: &OneTimeKeyName) -> Box<OneTimeKeyName>
Converts to this type from the input type.
source§impl From<&OneTimeKeyName> for OwnedOneTimeKeyName
impl From<&OneTimeKeyName> for OwnedOneTimeKeyName
source§fn from(id: &OneTimeKeyName) -> OwnedOneTimeKeyName
fn from(id: &OneTimeKeyName) -> OwnedOneTimeKeyName
Converts to this type from the input type.
source§impl From<&OneTimeKeyName> for Rc<OneTimeKeyName>
impl From<&OneTimeKeyName> for Rc<OneTimeKeyName>
source§fn from(s: &OneTimeKeyName) -> Rc<OneTimeKeyName>
fn from(s: &OneTimeKeyName) -> Rc<OneTimeKeyName>
Converts to this type from the input type.
source§impl From<&OneTimeKeyName> for String
impl From<&OneTimeKeyName> for String
source§fn from(id: &OneTimeKeyName) -> String
fn from(id: &OneTimeKeyName) -> String
Converts to this type from the input type.
source§impl<'a> From<&'a str> for &'a OneTimeKeyName
impl<'a> From<&'a str> for &'a OneTimeKeyName
source§fn from(s: &'a str) -> &'a OneTimeKeyName
fn from(s: &'a str) -> &'a OneTimeKeyName
Converts to this type from the input type.
source§impl From<OwnedOneTimeKeyName> for Box<OneTimeKeyName>
impl From<OwnedOneTimeKeyName> for Box<OneTimeKeyName>
source§fn from(a: OwnedOneTimeKeyName) -> Box<OneTimeKeyName>
fn from(a: OwnedOneTimeKeyName) -> Box<OneTimeKeyName>
Converts to this type from the input type.
source§impl Hash for OneTimeKeyName
impl Hash for OneTimeKeyName
source§impl KeyName for OneTimeKeyName
impl KeyName for OneTimeKeyName
source§impl Ord for OneTimeKeyName
impl Ord for OneTimeKeyName
source§impl PartialEq<&OneTimeKeyName> for OwnedOneTimeKeyName
impl PartialEq<&OneTimeKeyName> for OwnedOneTimeKeyName
source§impl PartialEq<&str> for OneTimeKeyName
impl PartialEq<&str> for OneTimeKeyName
source§impl PartialEq<Box<OneTimeKeyName>> for &OneTimeKeyName
impl PartialEq<Box<OneTimeKeyName>> for &OneTimeKeyName
source§impl PartialEq<Box<OneTimeKeyName>> for OneTimeKeyName
impl PartialEq<Box<OneTimeKeyName>> for OneTimeKeyName
source§impl PartialEq<OneTimeKeyName> for &str
impl PartialEq<OneTimeKeyName> for &str
source§impl PartialEq<OneTimeKeyName> for str
impl PartialEq<OneTimeKeyName> for str
source§impl PartialEq<OwnedOneTimeKeyName> for &OneTimeKeyName
impl PartialEq<OwnedOneTimeKeyName> for &OneTimeKeyName
source§impl PartialEq<String> for OneTimeKeyName
impl PartialEq<String> for OneTimeKeyName
source§impl PartialEq<str> for OneTimeKeyName
impl PartialEq<str> for OneTimeKeyName
source§impl PartialEq for OneTimeKeyName
impl PartialEq for OneTimeKeyName
source§impl PartialOrd for OneTimeKeyName
impl PartialOrd for OneTimeKeyName
source§impl Serialize for OneTimeKeyName
impl Serialize for OneTimeKeyName
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
source§impl ToOwned for OneTimeKeyName
impl ToOwned for OneTimeKeyName
source§type Owned = OwnedOneTimeKeyName
type Owned = OwnedOneTimeKeyName
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> <OneTimeKeyName as ToOwned>::Owned
fn to_owned(&self) -> <OneTimeKeyName 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 OneTimeKeyName
impl StructuralPartialEq for OneTimeKeyName
Auto Trait Implementations§
impl Freeze for OneTimeKeyName
impl RefUnwindSafe for OneTimeKeyName
impl Send for OneTimeKeyName
impl !Sized for OneTimeKeyName
impl Sync for OneTimeKeyName
impl Unpin for OneTimeKeyName
impl UnwindSafe for OneTimeKeyName
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.