pub struct ResponseParameters {
pub migrate_to_chat_id: Option<i64>,
pub retry_after: Option<i64>,
}Expand description
Contains information about why a request was unsuccessful.
Fields§
§migrate_to_chat_id: Option<i64>The group has been migrated to a supergroup with the specified identifier.
retry_after: Option<i64>In case of exceeding flood control, the number of seconds left to wait before the request can be repeated.
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<ResponseParameters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponseParameters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ResponseParameters
impl Hash for ResponseParameters
Source§impl Ord for ResponseParameters
impl Ord for ResponseParameters
Source§fn cmp(&self, other: &ResponseParameters) -> Ordering
fn cmp(&self, other: &ResponseParameters) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResponseParameters
impl PartialEq for ResponseParameters
Source§impl PartialOrd for ResponseParameters
impl PartialOrd for ResponseParameters
impl Eq for ResponseParameters
impl StructuralPartialEq for ResponseParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.