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