Struct twitch_api2::pubsub::hypetrain::Config[][src]

#[non_exhaustive]pub struct Config {
    pub callout_emote_id: String,
    pub callout_emote_token: String,
    pub channel_id: Option<UserId>,
    pub conductor_rewards: ConductorRewards,
    pub cooldown_duration: i64,
    pub difficulty: HypeTrainDifficulty,
    pub difficulty_settings: HashMap<HypeTrainDifficulty, Vec<Level>>,
    pub is_enabled: bool,
    pub kickoff: Kickoff,
    pub level_duration: i64,
    pub notification_thresholds: NotificationThresholds,
    pub participation_conversion_rates: ParticipationConversionRates,
    pub theme_color: Option<String>,
    pub primary_hex_color: Option<String>,
    pub use_personalized_settings: Option<bool>,
    pub use_theme_color: Option<bool>,
    pub use_creator_color: Option<bool>,
    // some fields omitted
}
This is supported on crate features pubsub and unsupported only.

Configuration of hype train

Fields (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.
callout_emote_id: String

Hype train public callout emote ID

callout_emote_token: String

Hype train public callout emote token

channel_id: Option<UserId>

ID of channel

conductor_rewards: ConductorRewards

Rewards for conductors

cooldown_duration: i64

Cooldown duration in nanoseconds for hype train

difficulty: HypeTrainDifficulty

Difficulty of hype train

difficulty_settings: HashMap<HypeTrainDifficulty, Vec<Level>>

Difficulty settings

is_enabled: bool

Whether or not Hype Train is enabled in channel

kickoff: Kickoff

Support events that must occur within a duration of time to kick off a Hype Train.

level_duration: i64

Duration in nanoseconds of each level

notification_thresholds: NotificationThresholds

Thresholds for notifications

participation_conversion_rates: ParticipationConversionRates

Conversion rates for participations

theme_color: Option<String>

Theme color of channel

None if use_theme_color is set to false

primary_hex_color: Option<String>

Primary color of hex

use_personalized_settings: Option<bool>

Uses personalized settings

use_theme_color: Option<bool>

Use theme color or not

use_creator_color: Option<bool>

Use creator color or not

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl<'de> Deserialize<'de> for Config[src]

impl Eq for Config[src]

impl PartialEq<Config> for Config[src]

impl Serialize for Config[src]

impl StructuralEq for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument 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>, 

impl<T> WithSubscriber for T[src]