pub struct GetChats {
pub offset_order: i64,
pub offset_chat_id: i64,
pub limit: i32,
}
Expand description
Returns an ordered list of chats. Chats are sorted by the pair (order, chat_id) in decreasing order. (For example, to get a list of chats from the beginning, the offset_order should be equal to 2^63 - 1). For optimal performance the number of returned chats is chosen by the library.
Fields§
§offset_order: i64
Chat order to return chats from
offset_chat_id: i64
Chat identifier to return chats from
limit: i32
The maximum number of chats to be returned. It is possible that fewer chats than the limit are returned even if the end of the list is not reached
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GetChats
impl<'de> Deserialize<'de> for GetChats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetChats
impl RefUnwindSafe for GetChats
impl Send for GetChats
impl Sync for GetChats
impl Unpin for GetChats
impl UnwindSafe for GetChats
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