pub struct ChatBadgeIdRef(/* private fields */);
Available on crate feature
emote
only.Expand description
A channel chat badge ID
Implementations§
Source§impl ChatBadgeIdRef
impl ChatBadgeIdRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed ChatBadgeIdRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static 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
Source§impl ChatBadgeIdRef
impl ChatBadgeIdRef
Sourcepub fn as_cow(&self) -> Cow<'_, ChatBadgeIdRef>
pub fn as_cow(&self) -> Cow<'_, ChatBadgeIdRef>
Get a
Cow<'_, ChatBadgeIdRef>
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
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a ChatBadgeIdRef
Available on crate feature
serde
only.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>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<ChatBadgeIdRef>
Available on crate feature
serde
only.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<'a> From<&'a &'a ChatBadgeIdRef> for Collection<'a, ChatBadgeId>
impl<'a> From<&'a &'a ChatBadgeIdRef> for Collection<'a, ChatBadgeId>
Source§fn from(v: &'a &'a ChatBadgeIdRef) -> Self
fn from(v: &'a &'a ChatBadgeIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ChatBadgeId> for &'a ChatBadgeIdRef
impl<'a> From<&'a ChatBadgeId> for &'a ChatBadgeIdRef
Source§fn from(owned: &'a ChatBadgeId) -> Self
fn from(owned: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
Source§impl From<&ChatBadgeIdRef> for Arc<ChatBadgeIdRef>
impl From<&ChatBadgeIdRef> for Arc<ChatBadgeIdRef>
Source§fn from(r: &ChatBadgeIdRef) -> Self
fn from(r: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
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 From<&ChatBadgeIdRef> for Rc<ChatBadgeIdRef>
impl From<&ChatBadgeIdRef> for Rc<ChatBadgeIdRef>
Source§fn from(r: &ChatBadgeIdRef) -> Self
fn from(r: &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 String> for &'a ChatBadgeIdRef
impl<'a> From<&'a String> for &'a ChatBadgeIdRef
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<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeId
impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeId
Source§fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeIdRef
impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeIdRef
Source§fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, ChatBadgeIdRef> for ChatBadgeId
impl<'a> IntoCow<'a, ChatBadgeIdRef> for ChatBadgeId
Source§fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for ChatBadgeIdRef
impl Ord for ChatBadgeIdRef
Source§impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
Source§impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
Source§impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
Source§impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
Source§impl PartialEq for ChatBadgeIdRef
impl PartialEq for ChatBadgeIdRef
Source§impl PartialOrd for ChatBadgeIdRef
impl PartialOrd for ChatBadgeIdRef
Source§impl Serialize for ChatBadgeIdRef
Available on crate feature serde
only.
impl Serialize for ChatBadgeIdRef
Available on crate feature
serde
only.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