Struct telegram_bot::types::Response[][src]

pub struct Response<T: Decodable> {
    pub ok: bool,
    pub error_code: Option<Integer>,
    pub description: Option<String>,
    pub result: Option<T>,
}

All API responses are from this type. Mostly used internal.

Fields

Trait Implementations

impl<T: Decodable + Decodable> Decodable for Response<T>
[src]

Deserialize a value using a Decoder.

impl<T: Debug + Decodable> Debug for Response<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq + Decodable> PartialEq for Response<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Clone + Decodable> Clone for Response<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for Response<T> where
    T: Send

impl<T> Sync for Response<T> where
    T: Sync