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§
Source§impl ResponseParameters
impl ResponseParameters
pub fn noskip(self) -> NoSkipResponseParameters
Source§impl ResponseParameters
impl ResponseParameters
pub fn new() -> Self
Sourcepub fn get_migrate_to_chat_id<'a>(&'a self) -> Option<i64>
pub fn get_migrate_to_chat_id<'a>(&'a self) -> 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.
Sourcepub fn set_migrate_to_chat_id<'a>(
&'a mut self,
migrate_to_chat_id: Option<i64>,
) -> &'a mut Self
pub fn set_migrate_to_chat_id<'a>( &'a mut self, migrate_to_chat_id: Option<i64>, ) -> &'a mut Self
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.
Sourcepub fn get_retry_after<'a>(&'a self) -> Option<i64>
pub fn get_retry_after<'a>(&'a self) -> Option<i64>
Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
Sourcepub fn set_retry_after<'a>(
&'a mut self,
retry_after: Option<i64>,
) -> &'a mut Self
pub fn set_retry_after<'a>( &'a mut self, retry_after: Option<i64>, ) -> &'a mut Self
Optional. 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResponseParameters
impl Debug for ResponseParameters
Source§impl Default for ResponseParameters
impl Default for ResponseParameters
Source§fn default() -> ResponseParameters
fn default() -> 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>,
Source§impl From<BoxWrapper<Box<ResponseParameters>>> for ResponseParameters
impl From<BoxWrapper<Box<ResponseParameters>>> for ResponseParameters
Source§fn from(t: BoxWrapper<Box<ResponseParameters>>) -> Self
fn from(t: BoxWrapper<Box<ResponseParameters>>) -> Self
Source§impl From<BoxWrapper<Unbox<ResponseParameters>>> for ResponseParameters
impl From<BoxWrapper<Unbox<ResponseParameters>>> for ResponseParameters
Source§fn from(t: BoxWrapper<Unbox<ResponseParameters>>) -> Self
fn from(t: BoxWrapper<Unbox<ResponseParameters>>) -> Self
Source§impl From<NoSkipResponseParameters> for ResponseParameters
impl From<NoSkipResponseParameters> for ResponseParameters
Source§fn from(t: NoSkipResponseParameters) -> Self
fn from(t: NoSkipResponseParameters) -> Self
Source§impl Hash for ResponseParameters
impl Hash for ResponseParameters
Source§impl Into<NoSkipResponseParameters> for ResponseParameters
impl Into<NoSkipResponseParameters> for ResponseParameters
Source§fn into(self) -> NoSkipResponseParameters
fn into(self) -> NoSkipResponseParameters
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,
Source§impl PartialEq for ResponseParameters
impl PartialEq for ResponseParameters
Source§impl PartialOrd for ResponseParameters
impl PartialOrd for ResponseParameters
Source§impl Serialize for ResponseParameters
impl Serialize 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.