pub struct InputMessageStakeDice {
pub state_hash: String,
pub stake_toncoin_amount: i64,
pub clear_draft: bool,
}Expand description
A stake dice message
Fields§
§state_hash: StringHash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState
stake_toncoin_amount: i64The Toncoin amount that will be staked; in the smallest units of the currency. Must be in the range getOption(“stake_dice_stake_amount_min”)-getOption(“stake_dice_stake_amount_max”)
clear_draft: boolTrue, if the chat message draft must be deleted
Trait Implementations§
Source§impl Clone for InputMessageStakeDice
impl Clone for InputMessageStakeDice
Source§fn clone(&self) -> InputMessageStakeDice
fn clone(&self) -> InputMessageStakeDice
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 InputMessageStakeDice
impl Debug for InputMessageStakeDice
Source§impl Default for InputMessageStakeDice
impl Default for InputMessageStakeDice
Source§fn default() -> InputMessageStakeDice
fn default() -> InputMessageStakeDice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputMessageStakeDice
impl<'de> Deserialize<'de> for InputMessageStakeDice
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
Source§impl PartialEq for InputMessageStakeDice
impl PartialEq for InputMessageStakeDice
Source§impl Serialize for InputMessageStakeDice
impl Serialize for InputMessageStakeDice
impl StructuralPartialEq for InputMessageStakeDice
Auto Trait Implementations§
impl Freeze for InputMessageStakeDice
impl RefUnwindSafe for InputMessageStakeDice
impl Send for InputMessageStakeDice
impl Sync for InputMessageStakeDice
impl Unpin for InputMessageStakeDice
impl UnsafeUnpin for InputMessageStakeDice
impl UnwindSafe for InputMessageStakeDice
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