Struct OneTimeKeyName
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§
§impl AsRef<[u8]> for Box<OneTimeKeyName>
impl AsRef<[u8]> for Box<OneTimeKeyName>
§impl AsRef<[u8]> for OneTimeKeyName
impl AsRef<[u8]> for OneTimeKeyName
§impl AsRef<OneTimeKeyName> for OneTimeKeyName
impl AsRef<OneTimeKeyName> for OneTimeKeyName
§fn as_ref(&self) -> &OneTimeKeyName
fn as_ref(&self) -> &OneTimeKeyName
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<OneTimeKeyName> for OwnedOneTimeKeyName
impl AsRef<OneTimeKeyName> for OwnedOneTimeKeyName
§fn as_ref(&self) -> &OneTimeKeyName
fn as_ref(&self) -> &OneTimeKeyName
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<str> for Box<OneTimeKeyName>
impl AsRef<str> for Box<OneTimeKeyName>
§impl AsRef<str> for OneTimeKeyName
impl AsRef<str> for OneTimeKeyName
§impl Borrow<OneTimeKeyName> for OwnedOneTimeKeyName
impl Borrow<OneTimeKeyName> for OwnedOneTimeKeyName
§fn borrow(&self) -> &OneTimeKeyName
fn borrow(&self) -> &OneTimeKeyName
Immutably borrows from an owned value. Read more
§impl Clone for Box<OneTimeKeyName>
impl Clone for Box<OneTimeKeyName>
§fn clone(&self) -> Box<OneTimeKeyName>
fn clone(&self) -> Box<OneTimeKeyName>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for OneTimeKeyName
impl Debug for OneTimeKeyName
§impl<'de> Deserialize<'de> for Box<OneTimeKeyName>
impl<'de> Deserialize<'de> for Box<OneTimeKeyName>
§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
§impl Display for OneTimeKeyName
impl Display for OneTimeKeyName
§impl From<&OneTimeKeyName> for Arc<OneTimeKeyName>
impl From<&OneTimeKeyName> for Arc<OneTimeKeyName>
§fn from(s: &OneTimeKeyName) -> Arc<OneTimeKeyName>
fn from(s: &OneTimeKeyName) -> Arc<OneTimeKeyName>
Converts to this type from the input type.
§impl From<&OneTimeKeyName> for Box<OneTimeKeyName>
impl From<&OneTimeKeyName> for Box<OneTimeKeyName>
§fn from(id: &OneTimeKeyName) -> Box<OneTimeKeyName>
fn from(id: &OneTimeKeyName) -> Box<OneTimeKeyName>
Converts to this type from the input type.
§impl From<&OneTimeKeyName> for OwnedOneTimeKeyName
impl From<&OneTimeKeyName> for OwnedOneTimeKeyName
§fn from(id: &OneTimeKeyName) -> OwnedOneTimeKeyName
fn from(id: &OneTimeKeyName) -> OwnedOneTimeKeyName
Converts to this type from the input type.
§impl From<&OneTimeKeyName> for Rc<OneTimeKeyName>
impl From<&OneTimeKeyName> for Rc<OneTimeKeyName>
§fn from(s: &OneTimeKeyName) -> Rc<OneTimeKeyName>
fn from(s: &OneTimeKeyName) -> Rc<OneTimeKeyName>
Converts to this type from the input type.
§impl From<&OneTimeKeyName> for String
impl From<&OneTimeKeyName> for String
§fn from(id: &OneTimeKeyName) -> String
fn from(id: &OneTimeKeyName) -> String
Converts to this type from the input type.
§impl<'a> From<&'a str> for &'a OneTimeKeyName
impl<'a> From<&'a str> for &'a OneTimeKeyName
§fn from(s: &'a str) -> &'a OneTimeKeyName
fn from(s: &'a str) -> &'a OneTimeKeyName
Converts to this type from the input type.
§impl From<&str> for Box<OneTimeKeyName>
impl From<&str> for Box<OneTimeKeyName>
§fn from(s: &str) -> Box<OneTimeKeyName>
fn from(s: &str) -> Box<OneTimeKeyName>
Converts to this type from the input type.
§impl From<OwnedOneTimeKeyName> for Box<OneTimeKeyName>
impl From<OwnedOneTimeKeyName> for Box<OneTimeKeyName>
§fn from(a: OwnedOneTimeKeyName) -> Box<OneTimeKeyName>
fn from(a: OwnedOneTimeKeyName) -> Box<OneTimeKeyName>
Converts to this type from the input type.
§impl From<String> for Box<OneTimeKeyName>
impl From<String> for Box<OneTimeKeyName>
§fn from(s: String) -> Box<OneTimeKeyName>
fn from(s: String) -> Box<OneTimeKeyName>
Converts to this type from the input type.
§impl Hash for OneTimeKeyName
impl Hash for OneTimeKeyName
§impl KeyName for OneTimeKeyName
impl KeyName for OneTimeKeyName
§impl Ord for OneTimeKeyName
impl Ord for OneTimeKeyName
§impl PartialEq<&OneTimeKeyName> for Box<OneTimeKeyName>
impl PartialEq<&OneTimeKeyName> for Box<OneTimeKeyName>
§impl PartialEq<&OneTimeKeyName> for OwnedOneTimeKeyName
impl PartialEq<&OneTimeKeyName> for OwnedOneTimeKeyName
§impl PartialEq<&str> for Box<OneTimeKeyName>
impl PartialEq<&str> for Box<OneTimeKeyName>
§impl PartialEq<&str> for OneTimeKeyName
impl PartialEq<&str> for OneTimeKeyName
§impl PartialEq<Box<OneTimeKeyName>> for &OneTimeKeyName
impl PartialEq<Box<OneTimeKeyName>> for &OneTimeKeyName
§impl PartialEq<Box<OneTimeKeyName>> for OneTimeKeyName
impl PartialEq<Box<OneTimeKeyName>> for OneTimeKeyName
§impl PartialEq<OneTimeKeyName> for &str
impl PartialEq<OneTimeKeyName> for &str
§impl PartialEq<OneTimeKeyName> for Box<OneTimeKeyName>
impl PartialEq<OneTimeKeyName> for Box<OneTimeKeyName>
§impl PartialEq<OneTimeKeyName> for OwnedOneTimeKeyName
impl PartialEq<OneTimeKeyName> for OwnedOneTimeKeyName
§impl PartialEq<OneTimeKeyName> for String
impl PartialEq<OneTimeKeyName> for String
§impl PartialEq<OneTimeKeyName> for str
impl PartialEq<OneTimeKeyName> for str
§impl PartialEq<OwnedOneTimeKeyName> for &OneTimeKeyName
impl PartialEq<OwnedOneTimeKeyName> for &OneTimeKeyName
§impl PartialEq<OwnedOneTimeKeyName> for Box<OneTimeKeyName>
impl PartialEq<OwnedOneTimeKeyName> for Box<OneTimeKeyName>
§impl PartialEq<OwnedOneTimeKeyName> for OneTimeKeyName
impl PartialEq<OwnedOneTimeKeyName> for OneTimeKeyName
§impl PartialEq<String> for Box<OneTimeKeyName>
impl PartialEq<String> for Box<OneTimeKeyName>
§impl PartialEq<String> for OneTimeKeyName
impl PartialEq<String> for OneTimeKeyName
§impl PartialEq<str> for Box<OneTimeKeyName>
impl PartialEq<str> for Box<OneTimeKeyName>
§impl PartialEq<str> for OneTimeKeyName
impl PartialEq<str> for OneTimeKeyName
§impl PartialEq for OneTimeKeyName
impl PartialEq for OneTimeKeyName
§impl PartialOrd for OneTimeKeyName
impl PartialOrd for OneTimeKeyName
§impl Serialize for OneTimeKeyName
impl Serialize for OneTimeKeyName
§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 OneTimeKeyName
impl ToOwned for OneTimeKeyName
§type Owned = OwnedOneTimeKeyName
type Owned = OwnedOneTimeKeyName
The resulting type after obtaining ownership.
§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.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.