pub struct UpdateCustomReward {Show 14 fields
pub title: Option<String>,
pub prompt: Option<String>,
pub cost: Option<i64>,
pub background_colour: 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<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 is_paused: Option<bool>,
pub should_redeptions_skip_request_queue: Option<bool>,
}Fields§
§title: Option<String>§prompt: Option<String>§cost: Option<i64>§background_colour: Option<String>§is_enabled: Option<bool>§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>§is_paused: Option<bool>§should_redeptions_skip_request_queue: Option<bool>Implementations§
Source§impl UpdateCustomReward
impl UpdateCustomReward
pub fn new() -> UpdateCustomReward
pub fn enable(self) -> UpdateCustomReward
pub fn disable(self) -> UpdateCustomReward
pub fn prompt<S: Into<String>>(self, text: S) -> UpdateCustomReward
pub fn title<S: Into<String>>(self, text: S) -> UpdateCustomReward
Trait Implementations§
Source§impl Clone for UpdateCustomReward
impl Clone for UpdateCustomReward
Source§fn clone(&self) -> UpdateCustomReward
fn clone(&self) -> UpdateCustomReward
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 UpdateCustomReward
impl Debug for UpdateCustomReward
Source§impl Default for UpdateCustomReward
impl Default for UpdateCustomReward
Source§fn default() -> UpdateCustomReward
fn default() -> UpdateCustomReward
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateCustomReward
impl<'de> Deserialize<'de> for UpdateCustomReward
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 UpdateCustomReward
impl RefUnwindSafe for UpdateCustomReward
impl Send for UpdateCustomReward
impl Sync for UpdateCustomReward
impl Unpin for UpdateCustomReward
impl UnwindSafe for UpdateCustomReward
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