pub struct ChatBadgeId(/* private fields */);
Available on crate feature
emote
only.Expand description
A channel chat badge ID
Implementations§
Source§impl ChatBadgeId
impl ChatBadgeId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newChatBadgeIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<ChatBadgeIdRef>
pub fn into_boxed_ref(self) -> Box<ChatBadgeIdRef>
Converts this ChatBadgeId
into a Box<ChatBadgeIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 ChatBadgeId
impl AsRef<str> for ChatBadgeId
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 ChatBadgeId
impl Borrow<str> for ChatBadgeId
Source§impl Clone for ChatBadgeId
impl Clone for ChatBadgeId
Source§fn clone(&self) -> ChatBadgeId
fn clone(&self) -> ChatBadgeId
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 ChatBadgeId
impl Debug for ChatBadgeId
Source§impl Deref for ChatBadgeId
impl Deref for ChatBadgeId
Source§impl<'de> Deserialize<'de> for ChatBadgeId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for ChatBadgeId
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 ChatBadgeId
impl Display for ChatBadgeId
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<'a> From<&'a ChatBadgeId> for Collection<'a, ChatBadgeId>
impl<'a> From<&'a ChatBadgeId> for Collection<'a, ChatBadgeId>
Source§fn from(v: &'a ChatBadgeId) -> Self
fn from(v: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
impl<'a> From<&'a ChatBadgeId> for Cow<'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 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 From<&str> for ChatBadgeId
impl From<&str> for ChatBadgeId
Source§impl From<Box<ChatBadgeIdRef>> for ChatBadgeId
impl From<Box<ChatBadgeIdRef>> for ChatBadgeId
Source§fn from(r: Box<ChatBadgeIdRef>) -> Self
fn from(r: Box<ChatBadgeIdRef>) -> Self
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<'a> From<ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
impl<'a> From<ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
Source§fn from(owned: ChatBadgeId) -> Self
fn from(owned: ChatBadgeId) -> Self
Converts to this type from the input type.
Source§impl From<ChatBadgeId> for String
impl From<ChatBadgeId> for String
Source§fn from(s: ChatBadgeId) -> Self
fn from(s: ChatBadgeId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, ChatBadgeIdRef>> for ChatBadgeId
impl<'a> From<Cow<'a, ChatBadgeIdRef>> for ChatBadgeId
Source§fn from(r: Cow<'a, ChatBadgeIdRef>) -> Self
fn from(r: Cow<'a, ChatBadgeIdRef>) -> Self
Converts to this type from the input type.
Source§impl From<String> for ChatBadgeId
impl From<String> for ChatBadgeId
Source§impl FromStr for ChatBadgeId
impl FromStr for ChatBadgeId
Source§impl Hash for ChatBadgeId
impl Hash for ChatBadgeId
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 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 ChatBadgeId
impl Ord for ChatBadgeId
Source§impl PartialEq<&ChatBadgeId> for ChatBadgeId
impl PartialEq<&ChatBadgeId> for ChatBadgeId
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 ChatBadgeId
impl PartialEq for ChatBadgeId
Source§impl PartialOrd for ChatBadgeId
impl PartialOrd for ChatBadgeId
Source§impl Serialize for ChatBadgeId
Available on crate feature serde
only.
impl Serialize for ChatBadgeId
Available on crate feature
serde
only.impl Eq for ChatBadgeId
impl StructuralPartialEq for ChatBadgeId
Auto Trait Implementations§
impl Freeze for ChatBadgeId
impl RefUnwindSafe for ChatBadgeId
impl Send for ChatBadgeId
impl Sync for ChatBadgeId
impl Unpin for ChatBadgeId
impl UnwindSafe for ChatBadgeId
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
)