Struct frankenstein::objects::Update
source · [−]pub struct Update {
pub update_id: u32,
pub content: UpdateContent,
}
Expand description
Represents an incoming update from telegram. Official documentation.
Fields
update_id: u32
content: UpdateContent
Maps to exactly one of the many optional fields from the official documentation.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Update
impl<'de> Deserialize<'de> for Update
sourcefn 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
impl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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