pub struct SetWebhookBuilder<'a> { /* private fields */ }Expand description
Builder for the [setWebhook] API method.
Implementations§
Source§impl<'a> SetWebhookBuilder<'a>
impl<'a> SetWebhookBuilder<'a>
Sourcepub fn certificate(self, val: InputFile) -> Self
pub fn certificate(self, val: InputFile) -> Self
Sets the certificate parameter.
Sourcepub fn ip_address(self, val: impl Into<String>) -> Self
pub fn ip_address(self, val: impl Into<String>) -> Self
Sets the ip_address parameter.
Sourcepub fn max_connections(self, val: i32) -> Self
pub fn max_connections(self, val: i32) -> Self
Sets the max_connections parameter.
Sourcepub fn allowed_updates(self, val: Vec<String>) -> Self
pub fn allowed_updates(self, val: Vec<String>) -> Self
Sets the allowed_updates parameter.
Sourcepub fn drop_pending_updates(self, val: bool) -> Self
pub fn drop_pending_updates(self, val: bool) -> Self
Sets the drop_pending_updates parameter.
Sourcepub fn secret_token(self, val: impl Into<String>) -> Self
pub fn secret_token(self, val: impl Into<String>) -> Self
Sets the secret_token parameter.
Trait Implementations§
Source§impl<'a> IntoFuture for SetWebhookBuilder<'a>
impl<'a> IntoFuture for SetWebhookBuilder<'a>
Source§type Output = Result<bool, TelegramError>
type Output = Result<bool, TelegramError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SetWebhookBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <SetWebhookBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for SetWebhookBuilder<'a>
impl<'a> !RefUnwindSafe for SetWebhookBuilder<'a>
impl<'a> Send for SetWebhookBuilder<'a>
impl<'a> Sync for SetWebhookBuilder<'a>
impl<'a> Unpin for SetWebhookBuilder<'a>
impl<'a> UnsafeUnpin for SetWebhookBuilder<'a>
impl<'a> !UnwindSafe for SetWebhookBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more