pub struct SetGameScore {
pub chat_id: i64,
pub message_id: i64,
pub edit_message: bool,
pub user_id: i32,
pub score: i32,
pub force: bool,
}
Expand description
Updates the game score of the specified user in the game; for bots only
Fields§
§chat_id: i64
The chat to which the message with the game
message_id: i64
Identifier of the message
edit_message: bool
True, if the message should be edited
user_id: i32
User identifier
score: i32
The new score
force: bool
Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table
Trait Implementations§
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<'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
Source§impl Method for SetGameScore
impl Method for SetGameScore
Auto Trait Implementations§
impl Freeze for SetGameScore
impl RefUnwindSafe for SetGameScore
impl Send for SetGameScore
impl Sync for SetGameScore
impl Unpin for SetGameScore
impl UnwindSafe for SetGameScore
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