Struct rust_tdlib::types::MessageDice
source · [−]pub struct MessageDice { /* private fields */ }Expand description
A dice message. The dice value is randomly generated by the server
Implementations
sourceimpl MessageDice
impl MessageDice
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> MessageDiceBuilder
pub fn initial_state(&self) -> &Option<DiceStickers>
pub fn final_state(&self) -> &Option<DiceStickers>
pub fn emoji(&self) -> &String
pub fn value(&self) -> i32
pub fn success_animation_frame_number(&self) -> i32
Trait Implementations
sourceimpl AsRef<MessageDice> for MessageDice
impl AsRef<MessageDice> for MessageDice
sourcefn as_ref(&self) -> &MessageDice
fn as_ref(&self) -> &MessageDice
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for MessageDice
impl Clone for MessageDice
sourcefn clone(&self) -> MessageDice
fn clone(&self) -> MessageDice
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MessageDice
impl Debug for MessageDice
sourceimpl Default for MessageDice
impl Default for MessageDice
sourcefn default() -> MessageDice
fn default() -> MessageDice
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for MessageDice
impl<'de> Deserialize<'de> for MessageDice
sourcefn 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
sourceimpl Serialize for MessageDice
impl Serialize for MessageDice
impl TDMessageContent for MessageDice
Auto Trait Implementations
impl RefUnwindSafe for MessageDice
impl Send for MessageDice
impl Sync for MessageDice
impl Unpin for MessageDice
impl UnwindSafe for MessageDice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more