pub struct ApiGetChats {
pub user_id: i64,
pub pending_connections: bool,
pub pagination: PaginationByTime,
pub query: ChatListQuery,
}Expand description
§Chat commands
Commands to list and delete conversations.
Get chat previews. Supports time-based pagination — use this instead of APIListContacts / APIListGroups when scanning at scale (those load every record into memory and fail on large databases).
Network usage: no.
Syntax:
/_get chats <userId>[ pcc=on] <str(pagination)> <json(query)>Fields§
§user_id: i64§pending_connections: bool§pagination: PaginationByTime§query: ChatListQueryImplementations§
Source§impl ApiGetChats
impl ApiGetChats
Sourcepub fn new(
user_id: i64,
pagination: PaginationByTime,
query: ChatListQuery,
) -> ApiGetChats
pub fn new( user_id: i64, pagination: PaginationByTime, query: ChatListQuery, ) -> ApiGetChats
Creates a command with all Option parameters set to None and all bool parameters set to false
Trait Implementations§
Source§impl Clone for ApiGetChats
impl Clone for ApiGetChats
Source§fn clone(&self) -> ApiGetChats
fn clone(&self) -> ApiGetChats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandSyntax for ApiGetChats
impl CommandSyntax for ApiGetChats
const COMMAND_BUF_SIZE: usize = 1024
fn append_command_syntax(&self, buf: &mut String)
Source§fn to_command_string(&self) -> String
fn to_command_string(&self) -> String
Generate a SimpleX command string from self
Source§impl Debug for ApiGetChats
impl Debug for ApiGetChats
Source§impl PartialEq for ApiGetChats
impl PartialEq for ApiGetChats
Source§fn eq(&self, other: &ApiGetChats) -> bool
fn eq(&self, other: &ApiGetChats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiGetChats
Auto Trait Implementations§
impl Freeze for ApiGetChats
impl RefUnwindSafe for ApiGetChats
impl Send for ApiGetChats
impl Sync for ApiGetChats
impl Unpin for ApiGetChats
impl UnsafeUnpin for ApiGetChats
impl UnwindSafe for ApiGetChats
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