Struct telegram_bot_fork_raw::requests::get_me::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.
Trait Implementations
sourceimpl PartialOrd<GetMe> for GetMe
impl PartialOrd<GetMe> for GetMe
sourcefn partial_cmp(&self, other: &GetMe) -> Option<Ordering>
fn partial_cmp(&self, other: &GetMe) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Request for GetMe
impl Request for GetMe
type Type = JsonRequestType<GetMe>
type Response = JsonIdResponse<User>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
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