Struct telexide::api::types::SetWebhook[][src]

pub struct SetWebhook {
    pub url: String,
    pub certificate: Option<InputFile>,
    pub max_connections: Option<i64>,
    pub allowed_updates: Option<Vec<UpdateType>>,
    pub ip_address: Option<String>,
    pub drop_pending_updates: Option<bool>,
}

struct for holding data needed to call set_webhook

note: having an webhook url set prevents you from using get_updates

Fields

url: String

HTTPS url to send updates to. Use an empty string to remove webhook integration

certificate: Option<InputFile>

Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details.

max_connections: Option<i64>

Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot‘s server, and higher values to increase your bot’s throughput.

allowed_updates: Option<Vec<UpdateType>>

List of the update types you want your bot to receive.

Please note that this parameter doesn’t affect updates created before the call to the set_webhook, so unwanted updates may be received for a short period of time.

ip_address: Option<String>

The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS

drop_pending_updates: Option<bool>

Pass True to drop all pending updates

Trait Implementations

impl Clone for SetWebhook[src]

impl Debug for SetWebhook[src]

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

impl PartialEq<SetWebhook> for SetWebhook[src]

impl Serialize for SetWebhook[src]

impl StructuralPartialEq for SetWebhook[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> CloneAny for T where
    T: Any + Clone
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> 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> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,