Struct matrix_sdk_base::ruma::OwnedKeyName
pub struct OwnedKeyName { /* private fields */ }
Expand description
Owned variant of KeyName
The wrapper type for this type is variable, by default it’ll use Box
,
but you can change that by setting “--cfg=ruma_identifiers_storage=...
” using
RUSTFLAGS
or .cargo/config.toml
(under [build]
-> rustflags = ["..."]
)
to the following;
ruma_identifiers_storage="Arc"
to useArc
as a wrapper type.
Methods from Deref<Target = KeyName>§
Trait Implementations§
§impl AsRef<[u8]> for OwnedKeyName
impl AsRef<[u8]> for OwnedKeyName
§impl AsRef<KeyName> for OwnedKeyName
impl AsRef<KeyName> for OwnedKeyName
§impl AsRef<str> for OwnedKeyName
impl AsRef<str> for OwnedKeyName
§impl Borrow<KeyName> for OwnedKeyName
impl Borrow<KeyName> for OwnedKeyName
§impl Clone for OwnedKeyName
impl Clone for OwnedKeyName
§fn clone(&self) -> OwnedKeyName
fn clone(&self) -> OwnedKeyName
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 OwnedKeyName
impl Debug for OwnedKeyName
§impl Deref for OwnedKeyName
impl Deref for OwnedKeyName
§impl<'de> Deserialize<'de> for OwnedKeyName
impl<'de> Deserialize<'de> for OwnedKeyName
§fn deserialize<D>(
deserializer: D
) -> Result<OwnedKeyName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<OwnedKeyName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for OwnedKeyName
impl Display for OwnedKeyName
§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<&str> for OwnedKeyName
impl From<&str> for OwnedKeyName
§fn from(s: &str) -> OwnedKeyName
fn from(s: &str) -> OwnedKeyName
Converts to this type from the input type.
§impl From<Arc<KeyName>> for OwnedKeyName
impl From<Arc<KeyName>> for OwnedKeyName
§fn from(a: Arc<KeyName>) -> OwnedKeyName
fn from(a: Arc<KeyName>) -> OwnedKeyName
Converts to this type from the input type.
§impl From<Box<KeyName>> for OwnedKeyName
impl From<Box<KeyName>> for OwnedKeyName
§fn from(b: Box<KeyName>) -> OwnedKeyName
fn from(b: Box<KeyName>) -> OwnedKeyName
Converts to this type from the input type.
§impl From<Box<str>> for OwnedKeyName
impl From<Box<str>> for OwnedKeyName
§fn from(s: Box<str>) -> OwnedKeyName
fn from(s: Box<str>) -> OwnedKeyName
Converts to this type from the input type.
§impl From<OwnedKeyName> for Arc<KeyName>
impl From<OwnedKeyName> for Arc<KeyName>
§fn from(a: OwnedKeyName) -> Arc<KeyName>
fn from(a: OwnedKeyName) -> Arc<KeyName>
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 From<OwnedKeyName> for String
impl From<OwnedKeyName> for String
§fn from(id: OwnedKeyName) -> String
fn from(id: OwnedKeyName) -> String
Converts to this type from the input type.
§impl From<String> for OwnedKeyName
impl From<String> for OwnedKeyName
§fn from(s: String) -> OwnedKeyName
fn from(s: String) -> OwnedKeyName
Converts to this type from the input type.
§impl Hash for OwnedKeyName
impl Hash for OwnedKeyName
§impl Ord for OwnedKeyName
impl Ord for OwnedKeyName
§impl PartialEq<&KeyName> for OwnedKeyName
impl PartialEq<&KeyName> for OwnedKeyName
§impl PartialEq<&str> for OwnedKeyName
impl PartialEq<&str> for OwnedKeyName
§impl PartialEq<Arc<KeyName>> for OwnedKeyName
impl PartialEq<Arc<KeyName>> for OwnedKeyName
§impl PartialEq<Box<KeyName>> for OwnedKeyName
impl PartialEq<Box<KeyName>> for OwnedKeyName
§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 &str
impl PartialEq<OwnedKeyName> for &str
§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 PartialEq<OwnedKeyName> for String
impl PartialEq<OwnedKeyName> for String
§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 str
impl PartialEq<OwnedKeyName> for str
§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<String> for OwnedKeyName
impl PartialEq<String> for OwnedKeyName
§impl PartialEq<str> for OwnedKeyName
impl PartialEq<str> for OwnedKeyName
§impl PartialEq for OwnedKeyName
impl PartialEq for OwnedKeyName
§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 OwnedKeyName
impl PartialOrd for OwnedKeyName
§fn partial_cmp(&self, other: &OwnedKeyName) -> Option<Ordering>
fn partial_cmp(&self, other: &OwnedKeyName) -> 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 OwnedKeyName
impl Serialize for OwnedKeyName
§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 Eq for OwnedKeyName
Auto Trait Implementations§
impl RefUnwindSafe for OwnedKeyName
impl Send for OwnedKeyName
impl Sync for OwnedKeyName
impl Unpin for OwnedKeyName
impl UnwindSafe for OwnedKeyName
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.