Struct telegram_bot_fork_raw::types::update::Update
source · pub struct Update {
pub id: Integer,
pub kind: UpdateKind,
}
Expand description
This object represents an incoming update.
Fields
id: Integer
The update‘s unique identifier. Update identifiers start from a certain positive number and increase sequentially.
kind: UpdateKind
Kind of the incoming update.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Update
impl<'de> Deserialize<'de> for Update
sourcefn deserialize<D>(deserializer: D) -> Result<Update, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Update, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialOrd<Update> for Update
impl PartialOrd<Update> for Update
sourcefn partial_cmp(&self, other: &Update) -> Option<Ordering>
fn partial_cmp(&self, other: &Update) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for Update
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more