Struct tbot::types::webhook_info::WebhookInfo[][src]

#[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>, }

Represents WebhookInfo.

Fields (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

impl Clone for WebhookInfo[src]

impl Debug for WebhookInfo[src]

impl<'de> Deserialize<'de> for WebhookInfo[src]

impl Hash for WebhookInfo[src]

impl PartialEq<WebhookInfo> for WebhookInfo[src]

impl Eq for WebhookInfo[src]

impl StructuralEq for WebhookInfo[src]

impl StructuralPartialEq for WebhookInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for WebhookInfo

impl Send for WebhookInfo

impl Sync for WebhookInfo

impl Unpin for WebhookInfo

impl UnwindSafe for WebhookInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]