[−][src]Struct tg_bot_models::SetGameScore
Use this method to set the score of the specified user in a game. On success, if the message was sent by the bot, returns the edited Message, otherwise returns True. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
Fields
user_id: i64
User identifier
score: i64
New score, must be non-negative
force: Option<bool>
Pass True, if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters
disable_edit_message: Option<bool>
Pass True, if the game message should not be automatically edited to include the current scoreboard
chat_id: Option<i64>
Required if inline_message_id is not specified. Unique identifier for the target chat
message_id: Option<i64>
Required if inline_message_id is not specified. Identifier of the sent message
inline_message_id: Option<String>
Required if chat_id and message_id are not specified. Identifier of the inline message
Trait Implementations
impl PartialOrd<SetGameScore> for SetGameScore
[src]
fn partial_cmp(&self, other: &SetGameScore) -> Option<Ordering>
[src]
fn lt(&self, other: &SetGameScore) -> bool
[src]
fn le(&self, other: &SetGameScore) -> bool
[src]
fn gt(&self, other: &SetGameScore) -> bool
[src]
fn ge(&self, other: &SetGameScore) -> bool
[src]
impl Clone for SetGameScore
[src]
fn clone(&self) -> SetGameScore
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<SetGameScore> for SetGameScore
[src]
fn eq(&self, other: &SetGameScore) -> bool
[src]
fn ne(&self, other: &SetGameScore) -> bool
[src]
impl Debug for SetGameScore
[src]
impl Serialize for SetGameScore
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for SetGameScore
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for SetGameScore
impl Sync for SetGameScore
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,