Struct rust_tdlib::types::SetInlineGameScore
source · pub struct SetInlineGameScore { /* private fields */ }
Expand description
Updates the game score of the specified user in a game; for bots only
Implementations§
source§impl SetInlineGameScore
impl SetInlineGameScore
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> SetInlineGameScoreBuilder
pub fn inline_message_id(&self) -> &String
pub fn edit_message(&self) -> bool
pub fn user_id(&self) -> i64
pub fn score(&self) -> i32
pub fn force(&self) -> bool
Trait Implementations§
source§impl AsRef<SetInlineGameScore> for SetInlineGameScore
impl AsRef<SetInlineGameScore> for SetInlineGameScore
source§fn as_ref(&self) -> &SetInlineGameScore
fn as_ref(&self) -> &SetInlineGameScore
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SetInlineGameScore
impl Clone for SetInlineGameScore
source§fn clone(&self) -> SetInlineGameScore
fn clone(&self) -> SetInlineGameScore
Returns a copy 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 SetInlineGameScore
impl Debug for SetInlineGameScore
source§impl Default for SetInlineGameScore
impl Default for SetInlineGameScore
source§fn default() -> SetInlineGameScore
fn default() -> SetInlineGameScore
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetInlineGameScore
impl<'de> Deserialize<'de> for SetInlineGameScore
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