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§
sourcefn certificate(self, value: InputFile) -> Self
fn certificate(self, value: InputFile) -> Self
Setter for certificate
field.
sourcefn ip_address<T>(self, value: T) -> Selfwhere
T: Into<String>,
fn ip_address<T>(self, value: T) -> Selfwhere T: Into<String>,
Setter for ip_address
field.
sourcefn max_connections(self, value: u8) -> Self
fn max_connections(self, value: u8) -> Self
Setter for max_connections
field.
sourcefn allowed_updates<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = AllowedUpdate>,
fn allowed_updates<T>(self, value: T) -> Selfwhere T: IntoIterator<Item = AllowedUpdate>,
Setter for allowed_updates
field.
sourcefn drop_pending_updates(self, value: bool) -> Self
fn drop_pending_updates(self, value: bool) -> Self
Setter for drop_pending_updates
field.
sourcefn secret_token<T>(self, value: T) -> Selfwhere
T: Into<String>,
fn secret_token<T>(self, value: T) -> Selfwhere T: Into<String>,
Setter for secret_token
field.