[][src]Struct twitch_irc::message::Badge

pub struct Badge {
    pub name: String,
    pub version: String,
}

A single Twitch "badge" to be shown next to the user's name in chat.

The combination of name and version fully describes the exact badge to display.

Fields

name: String

A string identifying the type of badge. For example, admin, moderator or subscriber.

version: String

A (usually) numeric version of this badge. Most badges only have one version (then usually version will be 0 or 1), but other types of badges have different versions (e.g. subscriber) to differentiate between levels, or lengths, or similar, depending on the badge.

Trait Implementations

impl Clone for Badge[src]

impl Debug for Badge[src]

impl PartialEq<Badge> for Badge[src]

impl StructuralPartialEq for Badge[src]

Auto Trait Implementations

impl RefUnwindSafe for Badge

impl Send for Badge

impl Sync for Badge

impl Unpin for Badge

impl UnwindSafe for Badge

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,