pub struct Update {
pub update_id: i64,
pub message: Option<Message>,
pub edited_message: Option<Message>,
pub channel_post: Option<Message>,
pub edited_channel_post: Option<Message>,
pub inline_query: Option<InlineQuery>,
}Fields§
§update_id: i64The 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.
message: Option<Message>New incoming message of any kind — text, photo, sticker, etc.
edited_message: Option<Message>New version of a message that is known to the bot and was edited.
channel_post: Option<Message>New incoming channel post of any kind — text, photo, sticker, etc.
edited_channel_post: Option<Message>New version of a channel post that is known to the bot and was edited.
inline_query: Option<InlineQuery>New incoming inline query
Trait Implementations§
source§impl<'de> Deserialize<'de> for Update
impl<'de> Deserialize<'de> for Update
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnwindSafe for Update
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