pub struct UpdateServiceNotification {
pub popup: bool,
pub invert_media: bool,
pub inbox_date: Option<i32>,
pub type: String,
pub message: String,
pub media: MessageMedia,
pub entities: Vec<MessageEntity>,
}Expand description
Generated from:
updateServiceNotification#ebe46819 flags:# popup:flags.0?true invert_media:flags.2?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector<MessageEntity> = UpdateFields§
§popup: bool§invert_media: bool§inbox_date: Option<i32>§type: String§message: String§media: MessageMedia§entities: Vec<MessageEntity>Trait Implementations§
Source§impl Clone for UpdateServiceNotification
impl Clone for UpdateServiceNotification
Source§fn clone(&self) -> UpdateServiceNotification
fn clone(&self) -> UpdateServiceNotification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateServiceNotification
impl Debug for UpdateServiceNotification
Source§impl Deserializable for UpdateServiceNotification
impl Deserializable for UpdateServiceNotification
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<UpdateServiceNotification> for Update
impl From<UpdateServiceNotification> for Update
Source§fn from(x: UpdateServiceNotification) -> Self
fn from(x: UpdateServiceNotification) -> Self
Converts to this type from the input type.
Source§impl Identifiable for UpdateServiceNotification
impl Identifiable for UpdateServiceNotification
Source§const CONSTRUCTOR_ID: u32 = 0xebe46819
const CONSTRUCTOR_ID: u32 = 0xebe46819
The constructor ID as specified in the TL schema.
Source§impl TryFrom<Update> for UpdateServiceNotification
impl TryFrom<Update> for UpdateServiceNotification
impl StructuralPartialEq for UpdateServiceNotification
Auto Trait Implementations§
impl Freeze for UpdateServiceNotification
impl RefUnwindSafe for UpdateServiceNotification
impl Send for UpdateServiceNotification
impl Sync for UpdateServiceNotification
impl Unpin for UpdateServiceNotification
impl UnsafeUnpin for UpdateServiceNotification
impl UnwindSafe for UpdateServiceNotification
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