pub struct ChatBadge {
pub type: String,
pub text: String,
pub count: Option<u32>,
}Expand description
A badge displayed next to a user’s name in chat
Fields§
§type: StringBadge type identifier
text: StringBadge display text
count: Option<u32>Optional count (e.g. subscription months)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatBadge
impl<'de> Deserialize<'de> for ChatBadge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChatBadge
impl RefUnwindSafe for ChatBadge
impl Send for ChatBadge
impl Sync for ChatBadge
impl Unpin for ChatBadge
impl UnwindSafe for ChatBadge
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