Struct telegram_bot_fork::types::requests::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§
source§impl PartialOrd<GetMe> for GetMe
impl PartialOrd<GetMe> for GetMe
1.0.0 · source§fn 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 moresource§impl 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>
source§impl Serialize for GetMe
impl Serialize for GetMe
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more