Enum twitch_api::helix::chat::AnnouncementColor
source · [−]#[non_exhaustive]
pub enum AnnouncementColor {
Blue,
Green,
Orange,
Purple,
Primary,
}
Available on crate feature
helix
only.Expand description
Valid colors for announcements
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Blue
The color blue
Green
The color green
Orange
The color orange
Purple
The color purple
Primary
The primary color for the broadcaster
Trait Implementations
sourceimpl Clone for AnnouncementColor
impl Clone for AnnouncementColor
sourcefn clone(&self) -> AnnouncementColor
fn clone(&self) -> AnnouncementColor
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AnnouncementColor
impl Debug for AnnouncementColor
sourceimpl Default for AnnouncementColor
impl Default for AnnouncementColor
sourceimpl<'de> Deserialize<'de> for AnnouncementColor
impl<'de> Deserialize<'de> for AnnouncementColor
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<AnnouncementColor> for AnnouncementColor
impl PartialEq<AnnouncementColor> for AnnouncementColor
sourcefn eq(&self, other: &AnnouncementColor) -> bool
fn eq(&self, other: &AnnouncementColor) -> bool
sourceimpl Serialize for AnnouncementColor
impl Serialize for AnnouncementColor
sourceimpl TryFrom<&str> for AnnouncementColor
impl TryFrom<&str> for AnnouncementColor
impl Eq for AnnouncementColor
impl StructuralEq for AnnouncementColor
impl StructuralPartialEq for AnnouncementColor
Auto Trait Implementations
impl RefUnwindSafe for AnnouncementColor
impl Send for AnnouncementColor
impl Sync for AnnouncementColor
impl Unpin for AnnouncementColor
impl UnwindSafe for AnnouncementColor
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.