pub enum BadgeKind {
Show 18 variants
Broadcaster,
Moderator,
Vip,
Subscriber,
Founder,
Staff,
GlobalMod,
Verified,
Og,
Member,
Premium,
Turbo,
Bits,
Gifter,
Predictions,
Hype,
Artist,
Other(char),
}Expand description
a user role badge, normalized across platforms. twitch sends
what a badge is, normalized across platforms. twitch sends
"broadcaster/1,moderator/1", kick sends [{name, version}] — both parse
into this one vocabulary (the extension’s BADGE_SHORT set). a badge we
don’t know keeps its first letter instead of vanishing.
Variants§
Broadcaster
Moderator
Vip
Subscriber
Founder
Staff
GlobalMod
Verified
Og
Member
Premium
Turbo
Bits
Gifter
Predictions
Hype
Artist
Other(char)
Trait Implementations§
impl Copy for BadgeKind
impl Eq for BadgeKind
impl StructuralPartialEq for BadgeKind
Auto Trait Implementations§
impl Forget for BadgeKind
impl Freeze for BadgeKind
impl RefUnwindSafe for BadgeKind
impl Send for BadgeKind
impl Sync for BadgeKind
impl Unpin for BadgeKind
impl UnsafeUnpin for BadgeKind
impl UnwindSafe for BadgeKind
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