#[non_exhaustive]pub enum HypeTrainType {
Treasure,
GoldenKappa,
Regular,
Unknown(String),
}Available on crate feature
helix only.Expand description
Type of Hype Train event
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.
Treasure
A treasure train.
GoldenKappa
A golden Kappa train.
Regular
A regular train.
Unknown(String)
An unknown hype train type, contains the raw string provided by Twitch.
Trait Implementations§
Source§impl Clone for HypeTrainType
impl Clone for HypeTrainType
Source§fn clone(&self) -> HypeTrainType
fn clone(&self) -> HypeTrainType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HypeTrainType
impl Debug for HypeTrainType
Source§impl<'de> Deserialize<'de> for HypeTrainType
impl<'de> Deserialize<'de> for HypeTrainType
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
Source§impl PartialEq for HypeTrainType
impl PartialEq for HypeTrainType
Source§fn eq(&self, other: &HypeTrainType) -> bool
fn eq(&self, other: &HypeTrainType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HypeTrainType
impl Serialize for HypeTrainType
impl Eq for HypeTrainType
impl StructuralPartialEq for HypeTrainType
Auto Trait Implementations§
impl Freeze for HypeTrainType
impl RefUnwindSafe for HypeTrainType
impl Send for HypeTrainType
impl Sync for HypeTrainType
impl Unpin for HypeTrainType
impl UnsafeUnpin for HypeTrainType
impl UnwindSafe for HypeTrainType
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