Struct teloxide::types::WebhookInfo[][src]

pub struct WebhookInfo {
    pub url: String,
    pub has_custom_certificate: bool,
    pub pending_update_count: u32,
    pub ip_address: Option<String>,
    pub last_error_date: Option<u64>,
    pub last_error_message: Option<String>,
    pub max_connections: Option<u32>,
    pub allowed_updates: Option<Vec<String, Global>>,
}

Contains information about the current status of a webhook.

The official docs.

Fields

url: String

Webhook URL, may be empty if webhook is not set up.

has_custom_certificate: bool

true, if a custom certificate was provided for webhook certificate checks.

pending_update_count: u32

Number of updates awaiting delivery.

ip_address: Option<String>

Currently used webhook IP address.

last_error_date: Option<u64>

Unix time for the most recent error that happened when trying to deliver an update via webhook.

last_error_message: Option<String>

Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook.

max_connections: Option<u32>

Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery.

allowed_updates: Option<Vec<String, Global>>

A list of update types the bot is subscribed to. Defaults to all update types.

Trait Implementations

impl Clone for WebhookInfo[src]

impl Debug for WebhookInfo[src]

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

impl Eq for WebhookInfo[src]

impl Hash for WebhookInfo[src]

impl PartialEq<WebhookInfo> for WebhookInfo[src]

impl Serialize for WebhookInfo[src]

impl StructuralEq for WebhookInfo[src]

impl StructuralPartialEq for WebhookInfo[src]

Auto Trait Implementations

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> CallHasher for T where
    T: Hash

impl<T> CallHasher for T where
    T: Hash + ?Sized

impl<T> Conv for T

impl<T> Conv for T

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices

type Remainder = Choices

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> FmtForward for T

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, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<Source> Sculptor<HNil, HNil> for Source

type Remainder = Source

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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.