pub struct Dialog {Show 15 fields
pub pinned: bool,
pub unread_mark: bool,
pub view_forum_as_messages: bool,
pub peer: Peer,
pub top_message: i32,
pub read_inbox_max_id: i32,
pub read_outbox_max_id: i32,
pub unread_count: i32,
pub unread_mentions_count: i32,
pub unread_reactions_count: i32,
pub notify_settings: PeerNotifySettings,
pub pts: Option<i32>,
pub draft: Option<DraftMessage>,
pub folder_id: Option<i32>,
pub ttl_period: Option<i32>,
}Expand description
Generated from:
dialog#d58a08c6 flags:# pinned:flags.2?true unread_mark:flags.3?true view_forum_as_messages:flags.6?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int ttl_period:flags.5?int = DialogFields§
§pinned: bool§unread_mark: bool§view_forum_as_messages: bool§peer: Peer§top_message: i32§read_inbox_max_id: i32§read_outbox_max_id: i32§unread_count: i32§unread_mentions_count: i32§unread_reactions_count: i32§notify_settings: PeerNotifySettings§pts: Option<i32>§draft: Option<DraftMessage>§folder_id: Option<i32>§ttl_period: Option<i32>Trait Implementations§
Source§impl Deserializable for Dialog
impl Deserializable for Dialog
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 Identifiable for Dialog
impl Identifiable for Dialog
Source§const CONSTRUCTOR_ID: u32 = 0xd58a08c6
const CONSTRUCTOR_ID: u32 = 0xd58a08c6
The constructor ID as specified in the TL schema.
Source§impl Serializable for Dialog
impl Serializable for Dialog
impl StructuralPartialEq for Dialog
Auto Trait Implementations§
impl Freeze for Dialog
impl RefUnwindSafe for Dialog
impl Send for Dialog
impl Sync for Dialog
impl Unpin for Dialog
impl UnsafeUnpin for Dialog
impl UnwindSafe for Dialog
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