Struct tg_bot_models::ResponseParameters [] [src]

pub struct ResponseParameters {
    pub migrate_to_chat_id: Option<i64>,
    pub retry_after: Option<i64>,
}

Contains information about why a request was unsuccessfull.

Fields

Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated

Trait Implementations

impl Debug for ResponseParameters
[src]

Formats the value using the given formatter.

impl Clone for ResponseParameters
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ResponseParameters
[src]

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

This method tests for !=.

impl PartialOrd for ResponseParameters
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more