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 Box<OneTimeKeyName>
impl PartialEq<&OneTimeKeyName> for Box<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 Box<OneTimeKeyName>
impl PartialEq<OneTimeKeyName> for Box<OneTimeKeyName>
Source§impl PartialEq<OneTimeKeyName> for String
impl PartialEq<OneTimeKeyName> for String
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<OwnedOneTimeKeyName> for Box<OneTimeKeyName>
impl PartialEq<OwnedOneTimeKeyName> for Box<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.