pub struct MessageStakeDice {
pub initial_state: Option<DiceStickers>,
pub final_state: Option<DiceStickers>,
pub value: i32,
pub stake_toncoin_amount: i64,
pub prize_toncoin_amount: i64,
}Expand description
A stake dice message. The dice value is randomly generated by the server
Fields§
§initial_state: Option<DiceStickers>The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known
final_state: Option<DiceStickers>The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known
value: i32The dice value. If the value is 0, then the dice don’t have final state yet
stake_toncoin_amount: i64The Toncoin amount that was staked; in the smallest units of the currency
prize_toncoin_amount: i64The Toncoin amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don’t have final state yet
Trait Implementations§
Source§impl Clone for MessageStakeDice
impl Clone for MessageStakeDice
Source§fn clone(&self) -> MessageStakeDice
fn clone(&self) -> MessageStakeDice
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 MessageStakeDice
impl Debug for MessageStakeDice
Source§impl Default for MessageStakeDice
impl Default for MessageStakeDice
Source§fn default() -> MessageStakeDice
fn default() -> MessageStakeDice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageStakeDice
impl<'de> Deserialize<'de> for MessageStakeDice
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 MessageStakeDice
impl PartialEq for MessageStakeDice
Source§impl Serialize for MessageStakeDice
impl Serialize for MessageStakeDice
impl StructuralPartialEq for MessageStakeDice
Auto Trait Implementations§
impl Freeze for MessageStakeDice
impl RefUnwindSafe for MessageStakeDice
impl Send for MessageStakeDice
impl Sync for MessageStakeDice
impl Unpin for MessageStakeDice
impl UnsafeUnpin for MessageStakeDice
impl UnwindSafe for MessageStakeDice
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