pub struct ChatIdentity {
pub color: String,
pub badges: Vec<ChatBadge>,
}Expand description
Visual identity information for a chat sender
Fields§
§color: StringUsername color hex code
badges: Vec<ChatBadge>List of badges the user has
Trait Implementations§
Source§impl Clone for ChatIdentity
impl Clone for ChatIdentity
Source§fn clone(&self) -> ChatIdentity
fn clone(&self) -> ChatIdentity
Returns a duplicate 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 ChatIdentity
impl Debug for ChatIdentity
Source§impl<'de> Deserialize<'de> for ChatIdentity
impl<'de> Deserialize<'de> for ChatIdentity
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 ChatIdentity
impl RefUnwindSafe for ChatIdentity
impl Send for ChatIdentity
impl Sync for ChatIdentity
impl Unpin for ChatIdentity
impl UnwindSafe for ChatIdentity
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