Struct matrix_sdk_base::ruma::OwnedDeviceKeyId
pub struct OwnedDeviceKeyId { /* private fields */ }
Expand description
Owned variant of DeviceKeyId
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 = DeviceKeyId>§
pub fn algorithm(&self) -> DeviceKeyAlgorithm
pub fn algorithm(&self) -> DeviceKeyAlgorithm
Returns key algorithm of the device key ID.
Trait Implementations§
§impl AsRef<[u8]> for OwnedDeviceKeyId
impl AsRef<[u8]> for OwnedDeviceKeyId
§impl AsRef<DeviceKeyId> for OwnedDeviceKeyId
impl AsRef<DeviceKeyId> for OwnedDeviceKeyId
§fn as_ref(&self) -> &DeviceKeyId
fn as_ref(&self) -> &DeviceKeyId
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<str> for OwnedDeviceKeyId
impl AsRef<str> for OwnedDeviceKeyId
§impl Borrow<DeviceKeyId> for OwnedDeviceKeyId
impl Borrow<DeviceKeyId> for OwnedDeviceKeyId
§fn borrow(&self) -> &DeviceKeyId
fn borrow(&self) -> &DeviceKeyId
Immutably borrows from an owned value. Read more
§impl Clone for OwnedDeviceKeyId
impl Clone for OwnedDeviceKeyId
§fn clone(&self) -> OwnedDeviceKeyId
fn clone(&self) -> OwnedDeviceKeyId
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 OwnedDeviceKeyId
impl Debug for OwnedDeviceKeyId
§impl Deref for OwnedDeviceKeyId
impl Deref for OwnedDeviceKeyId
§type Target = DeviceKeyId
type Target = DeviceKeyId
The resulting type after dereferencing.
§fn deref(&self) -> &<OwnedDeviceKeyId as Deref>::Target
fn deref(&self) -> &<OwnedDeviceKeyId as Deref>::Target
Dereferences the value.
§impl<'de> Deserialize<'de> for OwnedDeviceKeyId
impl<'de> Deserialize<'de> for OwnedDeviceKeyId
§fn deserialize<D>(
deserializer: D
) -> Result<OwnedDeviceKeyId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<OwnedDeviceKeyId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for OwnedDeviceKeyId
impl Display for OwnedDeviceKeyId
§impl From<&DeviceKeyId> for OwnedDeviceKeyId
impl From<&DeviceKeyId> for OwnedDeviceKeyId
§fn from(id: &DeviceKeyId) -> OwnedDeviceKeyId
fn from(id: &DeviceKeyId) -> OwnedDeviceKeyId
Converts to this type from the input type.
§impl From<Arc<DeviceKeyId>> for OwnedDeviceKeyId
impl From<Arc<DeviceKeyId>> for OwnedDeviceKeyId
§fn from(a: Arc<DeviceKeyId>) -> OwnedDeviceKeyId
fn from(a: Arc<DeviceKeyId>) -> OwnedDeviceKeyId
Converts to this type from the input type.
§impl From<Box<DeviceKeyId>> for OwnedDeviceKeyId
impl From<Box<DeviceKeyId>> for OwnedDeviceKeyId
§fn from(b: Box<DeviceKeyId>) -> OwnedDeviceKeyId
fn from(b: Box<DeviceKeyId>) -> OwnedDeviceKeyId
Converts to this type from the input type.
§impl From<OwnedDeviceKeyId> for Arc<DeviceKeyId>
impl From<OwnedDeviceKeyId> for Arc<DeviceKeyId>
§fn from(a: OwnedDeviceKeyId) -> Arc<DeviceKeyId>
fn from(a: OwnedDeviceKeyId) -> Arc<DeviceKeyId>
Converts to this type from the input type.
§impl From<OwnedDeviceKeyId> for Box<DeviceKeyId>
impl From<OwnedDeviceKeyId> for Box<DeviceKeyId>
§fn from(a: OwnedDeviceKeyId) -> Box<DeviceKeyId>
fn from(a: OwnedDeviceKeyId) -> Box<DeviceKeyId>
Converts to this type from the input type.
§impl From<OwnedDeviceKeyId> for String
impl From<OwnedDeviceKeyId> for String
§fn from(id: OwnedDeviceKeyId) -> String
fn from(id: OwnedDeviceKeyId) -> String
Converts to this type from the input type.
§impl FromStr for OwnedDeviceKeyId
impl FromStr for OwnedDeviceKeyId
§impl Hash for OwnedDeviceKeyId
impl Hash for OwnedDeviceKeyId
§impl Ord for OwnedDeviceKeyId
impl Ord for OwnedDeviceKeyId
§fn cmp(&self, other: &OwnedDeviceKeyId) -> Ordering
fn cmp(&self, other: &OwnedDeviceKeyId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq<&DeviceKeyId> for OwnedDeviceKeyId
impl PartialEq<&DeviceKeyId> for OwnedDeviceKeyId
§fn eq(&self, other: &&DeviceKeyId) -> bool
fn eq(&self, other: &&DeviceKeyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<&str> for OwnedDeviceKeyId
impl PartialEq<&str> for OwnedDeviceKeyId
§impl PartialEq<Arc<DeviceKeyId>> for OwnedDeviceKeyId
impl PartialEq<Arc<DeviceKeyId>> for OwnedDeviceKeyId
§fn eq(&self, other: &Arc<DeviceKeyId>) -> bool
fn eq(&self, other: &Arc<DeviceKeyId>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<Box<DeviceKeyId>> for OwnedDeviceKeyId
impl PartialEq<Box<DeviceKeyId>> for OwnedDeviceKeyId
§fn eq(&self, other: &Box<DeviceKeyId>) -> bool
fn eq(&self, other: &Box<DeviceKeyId>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<DeviceKeyId> for OwnedDeviceKeyId
impl PartialEq<DeviceKeyId> for OwnedDeviceKeyId
§fn eq(&self, other: &DeviceKeyId) -> bool
fn eq(&self, other: &DeviceKeyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<OwnedDeviceKeyId> for &DeviceKeyId
impl PartialEq<OwnedDeviceKeyId> for &DeviceKeyId
§fn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<OwnedDeviceKeyId> for &str
impl PartialEq<OwnedDeviceKeyId> for &str
§fn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<OwnedDeviceKeyId> for DeviceKeyId
impl PartialEq<OwnedDeviceKeyId> for DeviceKeyId
§fn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<OwnedDeviceKeyId> for String
impl PartialEq<OwnedDeviceKeyId> for String
§fn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<OwnedDeviceKeyId> for str
impl PartialEq<OwnedDeviceKeyId> for str
§fn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<String> for OwnedDeviceKeyId
impl PartialEq<String> for OwnedDeviceKeyId
§impl PartialEq<str> for OwnedDeviceKeyId
impl PartialEq<str> for OwnedDeviceKeyId
§impl PartialEq for OwnedDeviceKeyId
impl PartialEq for OwnedDeviceKeyId
§fn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for OwnedDeviceKeyId
impl PartialOrd for OwnedDeviceKeyId
§fn partial_cmp(&self, other: &OwnedDeviceKeyId) -> Option<Ordering>
fn partial_cmp(&self, other: &OwnedDeviceKeyId) -> 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 OwnedDeviceKeyId
impl Serialize for OwnedDeviceKeyId
§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 TryFrom<&str> for OwnedDeviceKeyId
impl TryFrom<&str> for OwnedDeviceKeyId
§impl TryFrom<String> for OwnedDeviceKeyId
impl TryFrom<String> for OwnedDeviceKeyId
impl Eq for OwnedDeviceKeyId
Auto Trait Implementations§
impl RefUnwindSafe for OwnedDeviceKeyId
impl Send for OwnedDeviceKeyId
impl Sync for OwnedDeviceKeyId
impl Unpin for OwnedDeviceKeyId
impl UnwindSafe for OwnedDeviceKeyId
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.