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
sourceimpl Payload for GetMe
impl Payload for GetMe
sourcefn 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. Read moreimpl 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
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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.