Struct twitch_api::pubsub::automod_queue::MessageUser
source · [−]#[non_exhaustive]pub struct MessageUser {
pub user_id: UserId,
pub login: UserName,
pub display_name: DisplayName,
pub badges: Vec<MessageUserBadges>,
pub chat_color: Option<String>,
}
Available on crate feature
pubsub
only.Expand description
A user according to Automod
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.user_id: UserId
ID of the user
login: UserName
Login name of the user, not capitalized
display_name: DisplayName
Display name of user
badges: Vec<MessageUserBadges>
Senders badges
chat_color: Option<String>
Color of the user
Trait Implementations
sourceimpl Clone for MessageUser
impl Clone for MessageUser
sourcefn clone(&self) -> MessageUser
fn clone(&self) -> MessageUser
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MessageUser
impl Debug for MessageUser
sourceimpl<'de> Deserialize<'de> for MessageUser
impl<'de> Deserialize<'de> for MessageUser
sourcefn 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
sourceimpl PartialEq<MessageUser> for MessageUser
impl PartialEq<MessageUser> for MessageUser
sourcefn eq(&self, other: &MessageUser) -> bool
fn eq(&self, other: &MessageUser) -> bool
sourceimpl Serialize for MessageUser
impl Serialize for MessageUser
impl Eq for MessageUser
impl StructuralEq for MessageUser
impl StructuralPartialEq for MessageUser
Auto Trait Implementations
impl RefUnwindSafe for MessageUser
impl Send for MessageUser
impl Sync for MessageUser
impl Unpin for MessageUser
impl UnwindSafe for MessageUser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.