Struct DirectUserIdentifier
pub struct DirectUserIdentifier(/* private fields */);
Expand description
Implementations§
§impl DirectUserIdentifier
impl DirectUserIdentifier
pub fn as_user_id(&self) -> Option<&UserId>
pub fn as_user_id(&self) -> Option<&UserId>
Get this DirectUserIdentifier
as an UserId
if it is one.
Trait Implementations§
§impl AsRef<[u8]> for Box<DirectUserIdentifier>
impl AsRef<[u8]> for Box<DirectUserIdentifier>
§impl AsRef<[u8]> for DirectUserIdentifier
impl AsRef<[u8]> for DirectUserIdentifier
§impl AsRef<DirectUserIdentifier> for DirectUserIdentifier
impl AsRef<DirectUserIdentifier> for DirectUserIdentifier
§fn as_ref(&self) -> &DirectUserIdentifier
fn as_ref(&self) -> &DirectUserIdentifier
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<DirectUserIdentifier> for OwnedDirectUserIdentifier
impl AsRef<DirectUserIdentifier> for OwnedDirectUserIdentifier
§fn as_ref(&self) -> &DirectUserIdentifier
fn as_ref(&self) -> &DirectUserIdentifier
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<str> for Box<DirectUserIdentifier>
impl AsRef<str> for Box<DirectUserIdentifier>
§impl AsRef<str> for DirectUserIdentifier
impl AsRef<str> for DirectUserIdentifier
§impl Borrow<DirectUserIdentifier> for OwnedDirectUserIdentifier
impl Borrow<DirectUserIdentifier> for OwnedDirectUserIdentifier
§fn borrow(&self) -> &DirectUserIdentifier
fn borrow(&self) -> &DirectUserIdentifier
Immutably borrows from an owned value. Read more
§impl Clone for Box<DirectUserIdentifier>
impl Clone for Box<DirectUserIdentifier>
§fn clone(&self) -> Box<DirectUserIdentifier>
fn clone(&self) -> Box<DirectUserIdentifier>
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 DirectUserIdentifier
impl Debug for DirectUserIdentifier
§impl<'de> Deserialize<'de> for Box<DirectUserIdentifier>
impl<'de> Deserialize<'de> for Box<DirectUserIdentifier>
§fn deserialize<D>(
deserializer: D,
) -> Result<Box<DirectUserIdentifier>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Box<DirectUserIdentifier>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for DirectUserIdentifier
impl Display for DirectUserIdentifier
§impl From<&DirectUserIdentifier> for Arc<DirectUserIdentifier>
impl From<&DirectUserIdentifier> for Arc<DirectUserIdentifier>
§fn from(s: &DirectUserIdentifier) -> Arc<DirectUserIdentifier>
fn from(s: &DirectUserIdentifier) -> Arc<DirectUserIdentifier>
Converts to this type from the input type.
§impl From<&DirectUserIdentifier> for Box<DirectUserIdentifier>
impl From<&DirectUserIdentifier> for Box<DirectUserIdentifier>
§fn from(id: &DirectUserIdentifier) -> Box<DirectUserIdentifier>
fn from(id: &DirectUserIdentifier) -> Box<DirectUserIdentifier>
Converts to this type from the input type.
§impl From<&DirectUserIdentifier> for OwnedDirectUserIdentifier
impl From<&DirectUserIdentifier> for OwnedDirectUserIdentifier
§fn from(id: &DirectUserIdentifier) -> OwnedDirectUserIdentifier
fn from(id: &DirectUserIdentifier) -> OwnedDirectUserIdentifier
Converts to this type from the input type.
§impl From<&DirectUserIdentifier> for Rc<DirectUserIdentifier>
impl From<&DirectUserIdentifier> for Rc<DirectUserIdentifier>
§fn from(s: &DirectUserIdentifier) -> Rc<DirectUserIdentifier>
fn from(s: &DirectUserIdentifier) -> Rc<DirectUserIdentifier>
Converts to this type from the input type.
§impl From<&DirectUserIdentifier> for String
impl From<&DirectUserIdentifier> for String
§fn from(id: &DirectUserIdentifier) -> String
fn from(id: &DirectUserIdentifier) -> String
Converts to this type from the input type.
§impl<'a> From<&'a UserId> for &'a DirectUserIdentifier
impl<'a> From<&'a UserId> for &'a DirectUserIdentifier
§fn from(value: &'a UserId) -> &'a DirectUserIdentifier
fn from(value: &'a UserId) -> &'a DirectUserIdentifier
Converts to this type from the input type.
§impl<'a> From<&'a str> for &'a DirectUserIdentifier
impl<'a> From<&'a str> for &'a DirectUserIdentifier
§fn from(s: &'a str) -> &'a DirectUserIdentifier
fn from(s: &'a str) -> &'a DirectUserIdentifier
Converts to this type from the input type.
§impl From<&str> for Box<DirectUserIdentifier>
impl From<&str> for Box<DirectUserIdentifier>
§fn from(s: &str) -> Box<DirectUserIdentifier>
fn from(s: &str) -> Box<DirectUserIdentifier>
Converts to this type from the input type.
§impl From<OwnedDirectUserIdentifier> for Box<DirectUserIdentifier>
impl From<OwnedDirectUserIdentifier> for Box<DirectUserIdentifier>
§fn from(a: OwnedDirectUserIdentifier) -> Box<DirectUserIdentifier>
fn from(a: OwnedDirectUserIdentifier) -> Box<DirectUserIdentifier>
Converts to this type from the input type.
§impl From<String> for Box<DirectUserIdentifier>
impl From<String> for Box<DirectUserIdentifier>
§fn from(s: String) -> Box<DirectUserIdentifier>
fn from(s: String) -> Box<DirectUserIdentifier>
Converts to this type from the input type.
§impl Hash for DirectUserIdentifier
impl Hash for DirectUserIdentifier
§impl Ord for DirectUserIdentifier
impl Ord for DirectUserIdentifier
§impl PartialEq<&DirectUserIdentifier> for &UserId
impl PartialEq<&DirectUserIdentifier> for &UserId
§impl PartialEq<&DirectUserIdentifier> for Box<DirectUserIdentifier>
impl PartialEq<&DirectUserIdentifier> for Box<DirectUserIdentifier>
§impl PartialEq<&DirectUserIdentifier> for OwnedUserId
impl PartialEq<&DirectUserIdentifier> for OwnedUserId
§impl PartialEq<&UserId> for &DirectUserIdentifier
impl PartialEq<&UserId> for &DirectUserIdentifier
§impl PartialEq<&str> for Box<DirectUserIdentifier>
impl PartialEq<&str> for Box<DirectUserIdentifier>
§impl PartialEq<&str> for DirectUserIdentifier
impl PartialEq<&str> for DirectUserIdentifier
§impl PartialEq<Box<DirectUserIdentifier>> for &DirectUserIdentifier
impl PartialEq<Box<DirectUserIdentifier>> for &DirectUserIdentifier
§impl PartialEq<Box<DirectUserIdentifier>> for DirectUserIdentifier
impl PartialEq<Box<DirectUserIdentifier>> for DirectUserIdentifier
§impl PartialEq<DirectUserIdentifier> for &str
impl PartialEq<DirectUserIdentifier> for &str
§impl PartialEq<DirectUserIdentifier> for Box<DirectUserIdentifier>
impl PartialEq<DirectUserIdentifier> for Box<DirectUserIdentifier>
§impl PartialEq<DirectUserIdentifier> for String
impl PartialEq<DirectUserIdentifier> for String
§impl PartialEq<DirectUserIdentifier> for str
impl PartialEq<DirectUserIdentifier> for str
§impl PartialEq<OwnedUserId> for &DirectUserIdentifier
impl PartialEq<OwnedUserId> for &DirectUserIdentifier
§impl PartialEq<String> for Box<DirectUserIdentifier>
impl PartialEq<String> for Box<DirectUserIdentifier>
§impl PartialEq<String> for DirectUserIdentifier
impl PartialEq<String> for DirectUserIdentifier
§impl PartialEq<str> for Box<DirectUserIdentifier>
impl PartialEq<str> for Box<DirectUserIdentifier>
§impl PartialEq<str> for DirectUserIdentifier
impl PartialEq<str> for DirectUserIdentifier
§impl PartialEq for DirectUserIdentifier
impl PartialEq for DirectUserIdentifier
§impl PartialOrd for DirectUserIdentifier
impl PartialOrd for DirectUserIdentifier
§impl Serialize for DirectUserIdentifier
impl Serialize for DirectUserIdentifier
§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 DirectUserIdentifier
impl ToOwned for DirectUserIdentifier
§type Owned = OwnedDirectUserIdentifier
type Owned = OwnedDirectUserIdentifier
The resulting type after obtaining ownership.
§fn to_owned(&self) -> <DirectUserIdentifier as ToOwned>::Owned
fn to_owned(&self) -> <DirectUserIdentifier 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<'a> TryFrom<&'a DirectUserIdentifier> for &'a UserId
impl<'a> TryFrom<&'a DirectUserIdentifier> for &'a UserId
§impl TryFrom<&DirectUserIdentifier> for OwnedUserId
impl TryFrom<&DirectUserIdentifier> for OwnedUserId
§fn try_from(
value: &DirectUserIdentifier,
) -> Result<OwnedUserId, <OwnedUserId as TryFrom<&DirectUserIdentifier>>::Error>
fn try_from( value: &DirectUserIdentifier, ) -> Result<OwnedUserId, <OwnedUserId as TryFrom<&DirectUserIdentifier>>::Error>
Performs the conversion.
impl Eq for DirectUserIdentifier
impl StructuralPartialEq for DirectUserIdentifier
Auto Trait Implementations§
impl Freeze for DirectUserIdentifier
impl RefUnwindSafe for DirectUserIdentifier
impl Send for DirectUserIdentifier
impl !Sized for DirectUserIdentifier
impl Sync for DirectUserIdentifier
impl Unpin for DirectUserIdentifier
impl UnwindSafe for DirectUserIdentifier
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.