pub struct ChatBadgeIdRef(/* private fields */);Expand description
A reference to a borrowed ChatBadgeId
Implementations§
Source§impl ChatBadgeIdRef
impl ChatBadgeIdRef
Sourcepub fn from_str(raw: &str) -> &Self
pub fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed ChatBadgeIdRef
Sourcepub fn into_owned(self: Box<ChatBadgeIdRef>) -> ChatBadgeId
pub fn into_owned(self: Box<ChatBadgeIdRef>) -> ChatBadgeId
Converts a Box<ChatBadgeIdRef> into a ChatBadgeId without copying or allocating
Trait Implementations§
Source§impl AsRef<ChatBadgeIdRef> for ChatBadgeId
impl AsRef<ChatBadgeIdRef> for ChatBadgeId
Source§fn as_ref(&self) -> &ChatBadgeIdRef
fn as_ref(&self) -> &ChatBadgeIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for ChatBadgeIdRef
impl AsRef<str> for ChatBadgeIdRef
Source§impl Borrow<ChatBadgeIdRef> for ChatBadgeId
impl Borrow<ChatBadgeIdRef> for ChatBadgeId
Source§fn borrow(&self) -> &ChatBadgeIdRef
fn borrow(&self) -> &ChatBadgeIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for ChatBadgeIdRef
impl Borrow<str> for ChatBadgeIdRef
Source§impl Debug for ChatBadgeIdRef
impl Debug for ChatBadgeIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a ChatBadgeIdRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a ChatBadgeIdRef
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Box<ChatBadgeIdRef>
impl<'de> Deserialize<'de> for Box<ChatBadgeIdRef>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ChatBadgeIdRef
impl Display for ChatBadgeIdRef
Source§impl From<&ChatBadgeIdRef> for ChatBadgeId
impl From<&ChatBadgeIdRef> for ChatBadgeId
Source§fn from(s: &ChatBadgeIdRef) -> Self
fn from(s: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ChatBadgeIdRef> for Cow<'a, ChatBadgeIdRef>
impl<'a> From<&'a ChatBadgeIdRef> for Cow<'a, ChatBadgeIdRef>
Source§fn from(r: &'a ChatBadgeIdRef) -> Self
fn from(r: &'a ChatBadgeIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, ChatBadgeIdRef>> for &'a ChatBadgeIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, ChatBadgeIdRef>> for &'a ChatBadgeIdRef
Source§fn from(r: &'a Cow<'b, ChatBadgeIdRef>) -> &'a ChatBadgeIdRef
fn from(r: &'a Cow<'b, ChatBadgeIdRef>) -> &'a ChatBadgeIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for &'a ChatBadgeIdRef
impl<'a> From<&'a str> for &'a ChatBadgeIdRef
Source§fn from(s: &'a str) -> &'a ChatBadgeIdRef
fn from(s: &'a str) -> &'a ChatBadgeIdRef
Converts to this type from the input type.
Source§impl From<ChatBadgeId> for Box<ChatBadgeIdRef>
impl From<ChatBadgeId> for Box<ChatBadgeIdRef>
Source§fn from(r: ChatBadgeId) -> Self
fn from(r: ChatBadgeId) -> Self
Converts to this type from the input type.
Source§impl Hash for ChatBadgeIdRef
impl Hash for ChatBadgeIdRef
Source§impl PartialEq<&ChatBadgeIdRef> for Box<ChatBadgeIdRef>
impl PartialEq<&ChatBadgeIdRef> for Box<ChatBadgeIdRef>
Source§impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
Source§impl PartialEq<&ChatBadgeIdRef> for ChatBadgeIdRef
impl PartialEq<&ChatBadgeIdRef> for ChatBadgeIdRef
Source§impl PartialEq<Box<ChatBadgeIdRef>> for &ChatBadgeIdRef
impl PartialEq<Box<ChatBadgeIdRef>> for &ChatBadgeIdRef
Source§impl PartialEq<Box<ChatBadgeIdRef>> for ChatBadgeIdRef
impl PartialEq<Box<ChatBadgeIdRef>> for ChatBadgeIdRef
Source§impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
Source§impl PartialEq<ChatBadgeId> for Box<ChatBadgeIdRef>
impl PartialEq<ChatBadgeId> for Box<ChatBadgeIdRef>
Source§impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
Source§impl PartialEq<ChatBadgeIdRef> for &ChatBadgeIdRef
impl PartialEq<ChatBadgeIdRef> for &ChatBadgeIdRef
Source§impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
Source§impl PartialEq for ChatBadgeIdRef
impl PartialEq for ChatBadgeIdRef
Source§impl Serialize for ChatBadgeIdRef
impl Serialize for ChatBadgeIdRef
Source§impl ToOwned for ChatBadgeIdRef
impl ToOwned for ChatBadgeIdRef
Source§type Owned = ChatBadgeId
type Owned = ChatBadgeId
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::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 ChatBadgeIdRef
Auto Trait Implementations§
impl Freeze for ChatBadgeIdRef
impl RefUnwindSafe for ChatBadgeIdRef
impl Send for ChatBadgeIdRef
impl !Sized for ChatBadgeIdRef
impl Sync for ChatBadgeIdRef
impl Unpin for ChatBadgeIdRef
impl UnwindSafe for ChatBadgeIdRef
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> 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.