pub struct DeleteWebhook {
pub drop_pending_updates: Option<bool>,
}Expand description
Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.
Fields§
§drop_pending_updates: Option<bool>Pass True to drop all pending updates
Implementations§
Source§impl DeleteWebhook
impl DeleteWebhook
pub fn new() -> Self
Sourcepub fn drop_pending_updates(self) -> Self
pub fn drop_pending_updates(self) -> Self
Drop all pending updates
Trait Implementations§
Source§impl Clone for DeleteWebhook
impl Clone for DeleteWebhook
Source§fn clone(&self) -> DeleteWebhook
fn clone(&self) -> DeleteWebhook
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Serialize for DeleteWebhook
impl Serialize for DeleteWebhook
Source§impl TelegramMethod for DeleteWebhook
impl TelegramMethod for DeleteWebhook
impl JsonMethod for DeleteWebhook
Auto Trait Implementations§
impl Freeze for DeleteWebhook
impl RefUnwindSafe for DeleteWebhook
impl Send for DeleteWebhook
impl Sync for DeleteWebhook
impl Unpin for DeleteWebhook
impl UnwindSafe for DeleteWebhook
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