[−][src]Struct actix_telegram::methods::GetGameHighScores
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]
&mut self,
val: __T
) -> &mut Self
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]
&mut self,
val: __T
) -> &mut Self
Required if chat_id and message_id are not specified. Identifier of the inline message
impl GetGameHighScores
[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
fn handle(
&mut self,
msg: GetGameHighScores,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
&mut self,
msg: GetGameHighScores,
_ctx: &mut Context<Self>
) -> Self::Result
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
impl Send for GetGameHighScores
impl Unpin for GetGameHighScores
impl Sync for GetGameHighScores
impl UnwindSafe for GetGameHighScores
impl RefUnwindSafe for GetGameHighScores
Blanket Implementations
impl<T> From<T> for 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,