pub struct SearchChats {
pub query: String,
pub limit: i32,
}
Expand description
Searches for the specified query in the title and username of already known chats, this is an offline request. Returns chats in the order seen in the chat list
Fields§
§query: String
Query to search for. If the query is empty, returns up to 20 recently found chats
limit: i32
Maximum number of chats to be returned
Trait Implementations§
Source§impl Clone for SearchChats
impl Clone for SearchChats
Source§fn clone(&self) -> SearchChats
fn clone(&self) -> SearchChats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SearchChats
impl Debug for SearchChats
Source§impl<'de> Deserialize<'de> for SearchChats
impl<'de> Deserialize<'de> for SearchChats
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
Source§impl Method for SearchChats
impl Method for SearchChats
Auto Trait Implementations§
impl Freeze for SearchChats
impl RefUnwindSafe for SearchChats
impl Send for SearchChats
impl Sync for SearchChats
impl Unpin for SearchChats
impl UnwindSafe for SearchChats
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