pub struct Dialog {Show 16 fields
pub peer: Option<Peer>,
pub space_id: Option<i64>,
pub archived: Option<bool>,
pub pinned: Option<bool>,
pub read_max_id: Option<i64>,
pub unread_count: Option<i32>,
pub chat_id: Option<i64>,
pub unread_mark: Option<bool>,
pub notification_settings: Option<DialogNotificationSettings>,
pub sidebar_visible: Option<bool>,
pub chat_list_hidden: Option<bool>,
pub open: Option<bool>,
pub opened_date: Option<i64>,
pub order: Option<String>,
pub pinned_order: Option<String>,
pub follow_mode: Option<i32>,
}Fields§
§peer: Option<Peer>§space_id: Option<i64>§archived: Option<bool>§pinned: Option<bool>§read_max_id: Option<i64>§unread_count: Option<i32>§chat_id: Option<i64>§unread_mark: Option<bool>§notification_settings: Option<DialogNotificationSettings>Deprecated wire field kept so old sidebar_visible=true does not decode as hidden.
Hide noisy reply threads from normal chat lists; this is independent of sidebar inbox open state.
open: Option<bool>Stable sidebar inbox membership.
opened_date: Option<i64>Deprecated: sidebar ordering is now stored in order.
order: Option<String>Stable fractional order for normal sidebar inbox rows.
pinned_order: Option<String>Stable fractional order for pinned sidebar rows.
follow_mode: Option<i32>Reply-thread automatic surfacing policy.
Implementations§
Source§impl Dialog
impl Dialog
Sourcepub fn space_id(&self) -> i64
pub fn space_id(&self) -> i64
Returns the value of space_id, or the default value if space_id is unset.
Sourcepub fn archived(&self) -> bool
pub fn archived(&self) -> bool
Returns the value of archived, or the default value if archived is unset.
Sourcepub fn pinned(&self) -> bool
pub fn pinned(&self) -> bool
Returns the value of pinned, or the default value if pinned is unset.
Sourcepub fn read_max_id(&self) -> i64
pub fn read_max_id(&self) -> i64
Returns the value of read_max_id, or the default value if read_max_id is unset.
Sourcepub fn unread_count(&self) -> i32
pub fn unread_count(&self) -> i32
Returns the value of unread_count, or the default value if unread_count is unset.
Sourcepub fn chat_id(&self) -> i64
pub fn chat_id(&self) -> i64
Returns the value of chat_id, or the default value if chat_id is unset.
Sourcepub fn unread_mark(&self) -> bool
pub fn unread_mark(&self) -> bool
Returns the value of unread_mark, or the default value if unread_mark is unset.
Returns the value of sidebar_visible, or the default value if sidebar_visible is unset.
Sourcepub fn opened_date(&self) -> i64
pub fn opened_date(&self) -> i64
Returns the value of opened_date, or the default value if opened_date is unset.
Returns the value of chat_list_hidden, or the default value if chat_list_hidden is unset.
Sourcepub fn order(&self) -> &str
pub fn order(&self) -> &str
Returns the value of order, or the default value if order is unset.
Sourcepub fn pinned_order(&self) -> &str
pub fn pinned_order(&self) -> &str
Returns the value of pinned_order, or the default value if pinned_order is unset.
Sourcepub fn follow_mode(&self) -> DialogFollowMode
pub fn follow_mode(&self) -> DialogFollowMode
Returns the enum value of follow_mode, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_follow_mode(&mut self, value: DialogFollowMode)
pub fn set_follow_mode(&mut self, value: DialogFollowMode)
Sets follow_mode to the provided enum value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dialog
impl<'de> Deserialize<'de> for Dialog
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Dialog, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Dialog, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Message for Dialog
impl Message for Dialog
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.