pub struct GetDialogsOptions {
pub limit: i32,
pub exclude_pinned: bool,
pub folder_id: Option<i32>,
}Expand description
Options for crate::Client::get_dialogs. Also used by DialogIter
for exclude_pinned/folder_id (via its own builder methods - limit
isn’t meaningful there, DialogIter always pages at its own fixed size).
limit has no sensible default, so build this via 10.into() (see the
From<i32> impl below) rather than GetDialogsOptions::default()
directly unless you’re also setting limit explicitly.
offset_date/offset_id/offset_peer/hash aren’t fields here -
the offsets are DialogIter’s job across pages, and hash intentionally
stays out of caller control since a stale-but-matching value silently
returns an empty result via messages.Dialogs::NotModified.
Fields§
§limit: i32Fetch up to this many dialogs, most recent first.
exclude_pinned: boolSkip pinned dialogs entirely.
folder_id: Option<i32>Only return dialogs in this folder (0 = default folder, 1 = Archive).
Trait Implementations§
Source§impl Clone for GetDialogsOptions
impl Clone for GetDialogsOptions
Source§fn clone(&self) -> GetDialogsOptions
fn clone(&self) -> GetDialogsOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more