pub struct NoSkipWebhookInfo {
pub url: String,
pub has_custom_certificate: bool,
pub pending_update_count: i64,
pub ip_address: Option<String>,
pub last_error_date: Option<i64>,
pub last_error_message: Option<String>,
pub last_synchronization_error_date: Option<i64>,
pub max_connections: Option<i64>,
pub allowed_updates: Option<Vec<String>>,
}Expand description
Companion type to WebhookInfo that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§url: StringWebhook URL, may be empty if webhook is not set up
has_custom_certificate: boolTrue, if a custom certificate was provided for webhook certificate checks
pending_update_count: i64Number of updates awaiting delivery
ip_address: Option<String>§last_error_date: Option<i64>§last_error_message: Option<String>§last_synchronization_error_date: Option<i64>§max_connections: Option<i64>§allowed_updates: Option<Vec<String>>Implementations§
Source§impl NoSkipWebhookInfo
impl NoSkipWebhookInfo
pub fn skip(self) -> WebhookInfo
Trait Implementations§
Source§impl Clone for NoSkipWebhookInfo
impl Clone for NoSkipWebhookInfo
Source§fn clone(&self) -> NoSkipWebhookInfo
fn clone(&self) -> NoSkipWebhookInfo
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 NoSkipWebhookInfo
impl Debug for NoSkipWebhookInfo
Source§impl Default for NoSkipWebhookInfo
impl Default for NoSkipWebhookInfo
Source§fn default() -> NoSkipWebhookInfo
fn default() -> NoSkipWebhookInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipWebhookInfo
impl<'de> Deserialize<'de> for NoSkipWebhookInfo
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
Source§impl From<NoSkipWebhookInfo> for WebhookInfo
impl From<NoSkipWebhookInfo> for WebhookInfo
Source§fn from(t: NoSkipWebhookInfo) -> Self
fn from(t: NoSkipWebhookInfo) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSkipWebhookInfo
impl Hash for NoSkipWebhookInfo
Source§impl Into<NoSkipWebhookInfo> for WebhookInfo
impl Into<NoSkipWebhookInfo> for WebhookInfo
Source§fn into(self) -> NoSkipWebhookInfo
fn into(self) -> NoSkipWebhookInfo
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipWebhookInfo
impl Ord for NoSkipWebhookInfo
Source§fn cmp(&self, other: &NoSkipWebhookInfo) -> Ordering
fn cmp(&self, other: &NoSkipWebhookInfo) -> 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 NoSkipWebhookInfo
impl PartialEq for NoSkipWebhookInfo
Source§impl PartialOrd for NoSkipWebhookInfo
impl PartialOrd for NoSkipWebhookInfo
Source§impl Serialize for NoSkipWebhookInfo
impl Serialize for NoSkipWebhookInfo
impl Eq for NoSkipWebhookInfo
impl StructuralPartialEq for NoSkipWebhookInfo
Auto Trait Implementations§
impl Freeze for NoSkipWebhookInfo
impl RefUnwindSafe for NoSkipWebhookInfo
impl Send for NoSkipWebhookInfo
impl Sync for NoSkipWebhookInfo
impl Unpin for NoSkipWebhookInfo
impl UnsafeUnpin for NoSkipWebhookInfo
impl UnwindSafe for NoSkipWebhookInfo
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> 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
Compare self to
key and return true if they are equal.