Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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