[][src]Enum actix_telegram::types::update::Update

pub enum Update {
    Message(MessageUpdate),
    EditedMessage(EditedMessageUpdate),
    ChannelPost(ChannelPostUpdate),
    EditedChannelPost(EditedChannelPostUpdate),
    InlineQuery(InlineQueryUpdate),
    ChosenInlineResult(ChosenInlineResultUpdate),
    CallbackQuery(CallbackQueryUpdate),
    ShippingQuery(ShippingQueryUpdate),
    PreCheckoutQuery(PreCheckoutQueryUpdate),
    Unknown(UnknownUpdate),
}

This object represents an incoming update.At most one of the optional parameters can be present in any given update.

Variants

Message(MessageUpdate)EditedMessage(EditedMessageUpdate)ChannelPost(ChannelPostUpdate)EditedChannelPost(EditedChannelPostUpdate)InlineQuery(InlineQueryUpdate)ChosenInlineResult(ChosenInlineResultUpdate)CallbackQuery(CallbackQueryUpdate)ShippingQuery(ShippingQueryUpdate)PreCheckoutQuery(PreCheckoutQueryUpdate)Unknown(UnknownUpdate)

Methods

impl Update
[src]

pub fn update_id(&self) -> UpdateId
[src]

The update‘s unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you’re using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.

pub fn kind(&self) -> UpdateKind
[src]

Trait Implementations

impl Clone for Update
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Update
[src]

impl Message for Update
[src]

type Result = Result<(), ()>

The type of value that this message will resolved with if it is successful. Read more

impl<H> Handler<Update> for TelegramWorker<H> where
    H: UpdateHandler + 'static, 
[src]

type Result = Result<(), ()>

The type of value that this handle will return

impl<'de> Deserialize<'de> for Update
[src]

Auto Trait Implementations

impl Send for Update

impl Sync for Update

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]