Struct teloxide_core::payloads::GetGameHighScores
source · pub struct GetGameHighScores {
pub user_id: UserId,
pub target: TargetMessage,
}
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. On success, returns an Array of GameHighScore
objects.
This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and his neighbors are not among them. Please note that this behavior is subject to change.
Fields§
§user_id: UserId
User identifier
target: TargetMessage
Target message
Implementations§
source§impl GetGameHighScores
impl GetGameHighScores
pub fn new(user_id: UserId, target: impl Into<TargetMessage>) -> Self
Trait Implementations§
source§impl Clone for GetGameHighScores
impl Clone for GetGameHighScores
source§impl Debug for GetGameHighScores
impl Debug for GetGameHighScores
source§impl Hash for GetGameHighScores
impl Hash for GetGameHighScores
source§impl PartialEq<GetGameHighScores> for GetGameHighScores
impl PartialEq<GetGameHighScores> for GetGameHighScores
source§fn eq(&self, other: &GetGameHighScores) -> bool
fn eq(&self, other: &GetGameHighScores) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for GetGameHighScores
impl Payload for GetGameHighScores
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for GetGameHighScores
impl Serialize for GetGameHighScores
impl Eq for GetGameHighScores
impl StructuralEq for GetGameHighScores
impl StructuralPartialEq 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.