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

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<u8>,
    pub allowed_updates: Option<Vec<Updates>>,
}

Represents WebhookInfo.

Fields

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<u8>

Maximum allowed number of connections at a time.

allowed_updates: Option<Vec<Updates>>

A list of updates the bot is subscribed to.

Trait Implementations

impl Eq for WebhookInfo[src]

impl Clone for WebhookInfo[src]

impl PartialEq<WebhookInfo> for WebhookInfo[src]

impl Hash for WebhookInfo[src]

impl Debug for WebhookInfo[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Erased for T

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