Struct telegram_bot_api::methods::GetGameHighScores
source · [−]pub struct GetGameHighScores {
pub user_id: i64,
pub chat_id: Option<i64>,
pub message_id: Option<i64>,
pub inline_message_id: Option<String>,
}
Expand description
Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of GameHighScore objects.
Fields
user_id: i64
Target user id
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
Implementations
Trait Implementations
sourceimpl Clone for GetGameHighScores
impl Clone for GetGameHighScores
sourcefn clone(&self) -> GetGameHighScores
fn clone(&self) -> GetGameHighScores
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GetGameHighScores
impl Debug for GetGameHighScores
sourceimpl<'de> Deserialize<'de> for GetGameHighScores
impl<'de> Deserialize<'de> for GetGameHighScores
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 Methods for GetGameHighScores
impl Methods for GetGameHighScores
sourceimpl Serialize for GetGameHighScores
impl Serialize for GetGameHighScores
Auto Trait Implementations
impl RefUnwindSafe for GetGameHighScores
impl Send for GetGameHighScores
impl Sync for GetGameHighScores
impl Unpin for GetGameHighScores
impl UnwindSafe for GetGameHighScores
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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