#[non_exhaustive]pub struct Config {Show 17 fields
pub callout_emote_id: EmoteId,
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>,
/* private fields */
}
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Available on crate features
pubsub
and unsupported
only.Expand description
Configuration of hype train
Fields (Non-exhaustive)§
This struct is marked as 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: EmoteId
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Hype train public callout emote ID
callout_emote_token: String
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Hype train public callout emote token
channel_id: Option<UserId>
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043ID of channel
conductor_rewards: ConductorRewards
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Rewards for conductors
cooldown_duration: i64
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Cooldown duration in nanoseconds for hype train
difficulty: HypeTrainDifficulty
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Difficulty of hype train
difficulty_settings: HashMap<HypeTrainDifficulty, Vec<Level>>
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Difficulty settings
is_enabled: bool
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Whether or not Hype Train is enabled in channel
kickoff: Kickoff
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Support events that must occur within a duration of time to kick off a Hype Train.
level_duration: i64
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Duration in nanoseconds of each level
notification_thresholds: NotificationThresholds
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Thresholds for notifications
participation_conversion_rates: ParticipationConversionRates
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Conversion rates for participations
theme_color: Option<String>
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Theme color of channel
None if use_theme_color is set to false
primary_hex_color: Option<String>
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Primary color of hex
use_personalized_settings: Option<bool>
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Uses personalized settings
use_theme_color: Option<bool>
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Use theme color or not
use_creator_color: Option<bool>
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Use creator color or not
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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