Struct ruma::OwnedKeyName
source · 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.
Trait Implementations§
source§impl AsRef<[u8]> for OwnedKeyName
impl AsRef<[u8]> for OwnedKeyName
source§impl AsRef<KeyName> for OwnedKeyName
impl AsRef<KeyName> for OwnedKeyName
source§impl AsRef<str> for OwnedKeyName
impl AsRef<str> for OwnedKeyName
source§impl Borrow<KeyName> for OwnedKeyName
impl Borrow<KeyName> for OwnedKeyName
source§impl Clone for OwnedKeyName
impl Clone for OwnedKeyName
source§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 moresource§impl Debug for OwnedKeyName
impl Debug for OwnedKeyName
source§impl Deref for OwnedKeyName
impl Deref for OwnedKeyName
source§impl<'de> Deserialize<'de> for OwnedKeyName
impl<'de> Deserialize<'de> for OwnedKeyName
source§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
source§impl Display for OwnedKeyName
impl Display for OwnedKeyName
source§impl From<&KeyName> for OwnedKeyName
impl From<&KeyName> for OwnedKeyName
source§fn from(id: &KeyName) -> OwnedKeyName
fn from(id: &KeyName) -> OwnedKeyName
Converts to this type from the input type.
source§impl From<&str> for OwnedKeyName
impl From<&str> for OwnedKeyName
source§fn from(s: &str) -> OwnedKeyName
fn from(s: &str) -> OwnedKeyName
Converts to this type from the input type.
source§impl From<OwnedKeyName> for String
impl From<OwnedKeyName> for String
source§fn from(id: OwnedKeyName) -> String
fn from(id: OwnedKeyName) -> String
Converts to this type from the input type.
source§impl From<String> for OwnedKeyName
impl From<String> for OwnedKeyName
source§fn from(s: String) -> OwnedKeyName
fn from(s: String) -> OwnedKeyName
Converts to this type from the input type.
source§impl Hash for OwnedKeyName
impl Hash for OwnedKeyName
source§impl Ord for OwnedKeyName
impl Ord for OwnedKeyName
source§fn cmp(&self, other: &OwnedKeyName) -> Ordering
fn cmp(&self, other: &OwnedKeyName) -> 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
source§impl PartialEq<&KeyName> for OwnedKeyName
impl PartialEq<&KeyName> for OwnedKeyName
source§impl PartialEq<&str> for OwnedKeyName
impl PartialEq<&str> for OwnedKeyName
source§impl PartialEq<KeyName> for OwnedKeyName
impl PartialEq<KeyName> for OwnedKeyName
source§impl PartialEq<OwnedKeyName> for &KeyName
impl PartialEq<OwnedKeyName> for &KeyName
source§impl PartialEq<OwnedKeyName> for &str
impl PartialEq<OwnedKeyName> for &str
source§impl PartialEq<OwnedKeyName> for KeyName
impl PartialEq<OwnedKeyName> for KeyName
source§impl PartialEq<OwnedKeyName> for str
impl PartialEq<OwnedKeyName> for str
source§impl PartialEq<String> for OwnedKeyName
impl PartialEq<String> for OwnedKeyName
source§impl PartialEq<str> for OwnedKeyName
impl PartialEq<str> for OwnedKeyName
source§impl PartialEq for OwnedKeyName
impl PartialEq for OwnedKeyName
source§impl PartialOrd for OwnedKeyName
impl PartialOrd for OwnedKeyName
source§impl Serialize for OwnedKeyName
impl Serialize for OwnedKeyName
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
impl Eq for OwnedKeyName
Auto Trait Implementations§
impl Freeze for OwnedKeyName
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more