Struct teloxide_core::payloads::Close[][src]

#[must_use = "Requests do nothing unless sent"]pub struct Close {}

Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn’t launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters.

Implementations

impl Close[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for Close[src]

impl Debug for Close[src]

impl Default for Close[src]

impl Eq for Close[src]

impl Hash for Close[src]

impl PartialEq<Close> for Close[src]

impl Payload for Close[src]

type Output = True

The return type of a Telegram method. Read more

impl Serialize for Close[src]

impl StructuralEq for Close[src]

impl StructuralPartialEq for Close[src]

Auto Trait Implementations

impl RefUnwindSafe for Close

impl Send for Close

impl Sync for Close

impl Unpin for Close

impl UnwindSafe for Close

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.