pub struct ResponseParameters {
pub migrate_to_chat_id: Option<i64>,
pub retry_after: Option<i64>,
}
Expand description
Describes 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 have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant 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
Implementations§
Trait Implementations§
Source§impl Clone for ResponseParameters
impl Clone for ResponseParameters
Source§fn clone(&self) -> ResponseParameters
fn clone(&self) -> ResponseParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResponseParameters
impl Debug for ResponseParameters
Source§impl<'de> Deserialize<'de> for ResponseParameters
impl<'de> Deserialize<'de> for ResponseParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResponseParameters
impl RefUnwindSafe for ResponseParameters
impl Send for ResponseParameters
impl Sync for ResponseParameters
impl Unpin for ResponseParameters
impl UnwindSafe for ResponseParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more