Struct tbot::types::webhook_info::WebhookInfo
source · #[non_exhaustive]pub struct WebhookInfo {
pub url: String,
pub has_custom_certificate: bool,
pub pending_update_count: u32,
pub last_error: Option<LastError>,
pub max_connections: Option<NonZeroU32>,
pub allowed_updates: Option<AllowedUpdates>,
pub ip_address: Option<IpAddr>,
}
Expand description
Represents WebhookInfo
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.url: String
The URL to which Telegram sends Webhook updates.
has_custom_certificate: bool
true
if a custom certificate was provided.
pending_update_count: u32
Number of pending updates.
last_error: Option<LastError>
Information about the last error that happened during sending an update.
max_connections: Option<NonZeroU32>
Maximum allowed number of connections at a time.
allowed_updates: Option<AllowedUpdates>
A list of updates the bot is subscribed to.
ip_address: Option<IpAddr>
The IP address which Telegram uses to connect to your sever.
Trait Implementations§
source§impl Clone for WebhookInfo
impl Clone for WebhookInfo
source§fn clone(&self) -> WebhookInfo
fn clone(&self) -> WebhookInfo
Returns a copy 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 WebhookInfo
impl Debug for WebhookInfo
source§impl<'de> Deserialize<'de> for WebhookInfo
impl<'de> Deserialize<'de> for WebhookInfo
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 Hash for WebhookInfo
impl Hash for WebhookInfo
source§impl PartialEq<WebhookInfo> for WebhookInfo
impl PartialEq<WebhookInfo> for WebhookInfo
source§fn eq(&self, other: &WebhookInfo) -> bool
fn eq(&self, other: &WebhookInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.