pub struct Update {
pub id: i32,
pub kind: UpdateKind,
}
Expand description
This object represents an incoming update.
Fields§
§id: i32
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.
kind: UpdateKind
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Update
impl<'de> Deserialize<'de> for Update
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Update, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Update, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Update> for Update
impl PartialEq<Update> for Update
source§impl Serialize for Update
impl Serialize for Update
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<Out> UpdateFilterExt<Out> for Updatewhere
Out: Send + Sync + 'static,
impl<Out> UpdateFilterExt<Out> for Updatewhere
Out: Send + Sync + 'static,
source§fn filter_message(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_message(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::Message
objects.source§fn filter_edited_message(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_edited_message(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::EditedMessage
objects.source§fn filter_channel_post(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_channel_post(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::ChannelPost
objects.source§fn filter_edited_channel_post(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_edited_channel_post(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::EditedChannelPost
objects.source§fn filter_inline_query(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_inline_query(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::InlineQuery
objects.source§fn filter_chosen_inline_result(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_chosen_inline_result(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::ChosenInlineResult
objects.source§fn filter_callback_query(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_callback_query(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::CallbackQuery
objects.source§fn filter_shipping_query(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_shipping_query(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::ShippingQuery
objects.source§fn filter_pre_checkout_query(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_pre_checkout_query(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::PreCheckoutQuery
objects.source§fn filter_poll() -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_poll() -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::Poll
objects.source§fn filter_poll_answer(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_poll_answer(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::PollAnswer
objects.source§fn filter_my_chat_member(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_my_chat_member(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::MyChatMember
objects.source§fn filter_chat_member(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
fn filter_chat_member(
) -> Handler<'static, DependencyMap, Out, DpHandlerDescription>
Filters out
UpdateKind::ChatMember
objects.