[][src]Struct actix_telegram::methods::GetGameHighScores

pub struct GetGameHighScores { /* fields omitted */ }

Use this method to get data for high score tables. Will return the score of the specified user and several of his 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 his 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.

Methods

impl GetGameHighScores[src]

pub fn set_user_id<__T: Into<Integer>>(&mut self, val: __T) -> &mut Self[src]

Target user id

pub fn set_chat_id<__T: Into<Option<Integer>>>(&mut self, val: __T) -> &mut Self[src]

Required if inline_message_id is not specified. Unique identifier for the target chat

pub fn set_message_id<__T: Into<Option<Integer>>>(
    &mut self,
    val: __T
) -> &mut Self
[src]

Required if inline_message_id is not specified. Identifier of the sent message

pub fn set_inline_message_id<__T: Into<Option<String>>>(
    &mut self,
    val: __T
) -> &mut Self
[src]

Required if chat_id and message_id are not specified. Identifier of the inline message

impl GetGameHighScores[src]

pub fn new(user_id: impl Into<Integer>) -> Self[src]

Trait Implementations

impl Debug for GetGameHighScores[src]

impl Handler<GetGameHighScores> for TelegramApi[src]

type Result = Box<dyn Future<Item = Vec<GameHighScore>, Error = Error>>

The type of value that this handle will return

impl Message for GetGameHighScores[src]

type Result = Result<Vec<GameHighScore>, Error>

The type of value that this message will resolved with if it is successful. Read more

impl Serialize for GetGameHighScores[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T