pub struct MessageDice {
pub initial_state: Option<DiceStickers>,
pub final_state: Option<DiceStickers>,
pub emoji: String,
pub value: i32,
pub success_animation_frame_number: i32,
}
Expand description
A 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
emoji: String
Emoji on which the dice throw animation is based
value: i32
The dice value. If the value is 0, the dice don’t have final state yet
success_animation_frame_number: i32
Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded
Trait Implementations§
Source§impl Clone for MessageDice
impl Clone for MessageDice
Source§fn clone(&self) -> MessageDice
fn clone(&self) -> MessageDice
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 MessageDice
impl Debug for MessageDice
Source§impl Default for MessageDice
impl Default for MessageDice
Source§fn default() -> MessageDice
fn default() -> MessageDice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageDice
impl<'de> Deserialize<'de> for MessageDice
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 MessageDice
impl PartialEq for MessageDice
Source§impl Serialize for MessageDice
impl Serialize for MessageDice
impl StructuralPartialEq for MessageDice
Auto Trait Implementations§
impl Freeze for MessageDice
impl RefUnwindSafe for MessageDice
impl Send for MessageDice
impl Sync for MessageDice
impl Unpin for MessageDice
impl UnwindSafe for MessageDice
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