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 unsuccessful.
Fields
migrate_to_chat_id: Option<i64>
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.
retry_after: Option<i64>
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]
impl Debug for ResponseParameters
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ResponseParameters
[src]
impl Clone for ResponseParameters
fn clone(&self) -> ResponseParameters
[src]
fn clone(&self) -> ResponseParameters
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ResponseParameters
[src]
impl PartialEq for ResponseParameters
fn eq(&self, other: &ResponseParameters) -> bool
[src]
fn eq(&self, other: &ResponseParameters) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ResponseParameters) -> bool
[src]
fn ne(&self, other: &ResponseParameters) -> bool
This method tests for !=
.
impl PartialOrd for ResponseParameters
[src]
impl PartialOrd for ResponseParameters
fn partial_cmp(&self, other: &ResponseParameters) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ResponseParameters) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ResponseParameters) -> bool
[src]
fn lt(&self, other: &ResponseParameters) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ResponseParameters) -> bool
[src]
fn le(&self, other: &ResponseParameters) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &ResponseParameters) -> bool
[src]
fn gt(&self, other: &ResponseParameters) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ResponseParameters) -> bool
[src]
fn ge(&self, other: &ResponseParameters) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for ResponseParameters
impl Send for ResponseParameters
impl Sync for ResponseParameters
impl Sync for ResponseParameters