pub struct RewardCreate {Show 13 fields
pub title: String,
pub cost: i64,
pub prompt: Option<String>,
pub is_enabled: Option<bool>,
pub background_color: Option<String>,
pub is_user_input_required: Option<bool>,
pub is_max_per_stream_enabled: Option<bool>,
pub max_per_stream: Option<i64>,
pub is_max_per_user_per_stream_enabled: Option<bool>,
pub max_per_user_per_stream: Option<i64>,
pub is_global_cooldown_enabled: Option<bool>,
pub global_cooldown_seconds: Option<i64>,
pub should_redemptions_skip_request_queue: Option<bool>,
}
Fields§
§title: String
§cost: i64
§prompt: Option<String>
§is_enabled: Option<bool>
§background_color: Option<String>
§is_user_input_required: Option<bool>
§is_max_per_stream_enabled: Option<bool>
§max_per_stream: Option<i64>
§is_max_per_user_per_stream_enabled: Option<bool>
§max_per_user_per_stream: Option<i64>
§is_global_cooldown_enabled: Option<bool>
§global_cooldown_seconds: Option<i64>
§should_redemptions_skip_request_queue: Option<bool>
Trait Implementations§
Source§impl Clone for RewardCreate
impl Clone for RewardCreate
Source§fn clone(&self) -> RewardCreate
fn clone(&self) -> RewardCreate
Returns a duplicate of the value. Read more
1.0.0 · 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 RewardCreate
impl Debug for RewardCreate
Source§impl Default for RewardCreate
impl Default for RewardCreate
Source§fn default() -> RewardCreate
fn default() -> RewardCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RewardCreate
impl<'de> Deserialize<'de> for RewardCreate
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
Auto Trait Implementations§
impl Freeze for RewardCreate
impl RefUnwindSafe for RewardCreate
impl Send for RewardCreate
impl Sync for RewardCreate
impl Unpin for RewardCreate
impl UnwindSafe for RewardCreate
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