Trait teloxide_core::payloads::SetWebhookSetters

source ·
pub trait SetWebhookSetters: HasPayload<Payload = SetWebhook> + Sized {
    // Provided methods
    fn url(self, value: Url) -> Self { ... }
    fn certificate(self, value: InputFile) -> Self { ... }
    fn ip_address<T>(self, value: T) -> Self
       where T: Into<String> { ... }
    fn max_connections(self, value: u8) -> Self { ... }
    fn allowed_updates<T>(self, value: T) -> Self
       where T: IntoIterator<Item = AllowedUpdate> { ... }
    fn drop_pending_updates(self, value: bool) -> Self { ... }
    fn secret_token<T>(self, value: T) -> Self
       where T: Into<String> { ... }
}
Expand description

Setters for fields of SetWebhook

Provided Methods§

source

fn url(self, value: Url) -> Self

Setter for url field.

source

fn certificate(self, value: InputFile) -> Self

Setter for certificate field.

source

fn ip_address<T>(self, value: T) -> Self
where T: Into<String>,

Setter for ip_address field.

source

fn max_connections(self, value: u8) -> Self

Setter for max_connections field.

source

fn allowed_updates<T>(self, value: T) -> Self
where T: IntoIterator<Item = AllowedUpdate>,

Setter for allowed_updates field.

source

fn drop_pending_updates(self, value: bool) -> Self

Setter for drop_pending_updates field.

source

fn secret_token<T>(self, value: T) -> Self
where T: Into<String>,

Setter for secret_token field.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<P> SetWebhookSetters for P
where P: HasPayload<Payload = SetWebhook>,