#[non_exhaustive]
pub struct UpdateCustomRewardBody {
Show 14 fields pub title: Option<String>, pub prompt: Option<String>, pub cost: Option<usize>, pub background_color: Option<String>, pub is_enabled: Option<bool>, pub is_user_input_required: Option<bool>, pub is_max_per_stream_enabled: Option<bool>, pub max_per_stream: Option<usize>, pub is_max_per_user_per_stream_enabled: Option<bool>, pub max_per_user_per_stream: Option<usize>, pub is_global_cooldown_enabled: Option<bool>, pub global_cooldown_seconds: Option<usize>, pub is_paused: Option<bool>, pub should_redemptions_skip_request_queue: Option<bool>,
}
Available on crate feature helix only.
Expand description

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.
title: Option<String>

The title of the reward

prompt: Option<String>

The prompt for the viewer when they are redeeming the reward

cost: Option<usize>

The cost of the reward

background_color: Option<String>

Custom background color for the reward. Format: Hex with # prefix. Example: #00E5CB.

is_enabled: Option<bool>

Is the reward currently enabled, if false the reward won’t show up to viewers

is_user_input_required: Option<bool>

Does the user need to enter information when redeeming the reward.

is_max_per_stream_enabled: Option<bool>

Whether a maximum per stream is enabled

max_per_stream: Option<usize>

The maximum number per stream if enabled

is_max_per_user_per_stream_enabled: Option<bool>

Whether a maximum per user per stream is enabled. Defaults to false.

max_per_user_per_stream: Option<usize>

The maximum number per user per stream if enabled

is_global_cooldown_enabled: Option<bool>

Whether a cooldown is enabled. Defaults to false.

global_cooldown_seconds: Option<usize>

The cooldown in seconds if enabled

is_paused: Option<bool>

Is the reward currently paused, if true viewers can’t redeem

should_redemptions_skip_request_queue: Option<bool>

Should redemptions be set to FULFILLED status immediately when redeemed and skip the request queue instead of the normal UNFULFILLED status.

Implementations

Create a builder for building UpdateCustomRewardBody. On the builder, call .title(...)(optional), .prompt(...)(optional), .cost(...)(optional), .background_color(...)(optional), .is_enabled(...)(optional), .is_user_input_required(...)(optional), .is_max_per_stream_enabled(...)(optional), .max_per_stream(...)(optional), .is_max_per_user_per_stream_enabled(...)(optional), .max_per_user_per_stream(...)(optional), .is_global_cooldown_enabled(...)(optional), .global_cooldown_seconds(...)(optional), .is_paused(...)(optional), .should_redemptions_skip_request_queue(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of UpdateCustomRewardBody.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Available on crate feature helix only.

Create the body

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more