Struct teloxide_core::payloads::GetMe
source · pub struct GetMe {}
Expand description
A simple method for testing your bot’s auth token. Requires no parameters. Returns basic information about the bot in form of a User
object.
Implementations§
Trait Implementations§
source§impl PartialEq<GetMe> for GetMe
impl PartialEq<GetMe> for GetMe
source§impl Payload for GetMe
impl Payload for GetMe
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.impl Eq for GetMe
impl StructuralEq for GetMe
impl StructuralPartialEq for GetMe
Auto Trait Implementations§
impl RefUnwindSafe for GetMe
impl Send for GetMe
impl Sync for GetMe
impl Unpin for GetMe
impl UnwindSafe for GetMe
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.