Struct rust_tdlib::types::SearchMessages
source · pub struct SearchMessages { /* private fields */ }
Expand description
Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
Implementations§
source§impl SearchMessages
impl SearchMessages
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> SearchMessagesBuilder
pub fn chat_list(&self) -> &ChatList
pub fn query(&self) -> &String
pub fn offset_date(&self) -> i32
pub fn offset_chat_id(&self) -> i64
pub fn offset_message_id(&self) -> i64
pub fn limit(&self) -> i32
pub fn filter(&self) -> &SearchMessagesFilter
pub fn min_date(&self) -> i32
pub fn max_date(&self) -> i32
Trait Implementations§
source§impl AsRef<SearchMessages> for SearchMessages
impl AsRef<SearchMessages> for SearchMessages
source§fn as_ref(&self) -> &SearchMessages
fn as_ref(&self) -> &SearchMessages
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SearchMessages
impl Clone for SearchMessages
source§fn clone(&self) -> SearchMessages
fn clone(&self) -> SearchMessages
Returns a copy 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 SearchMessages
impl Debug for SearchMessages
source§impl Default for SearchMessages
impl Default for SearchMessages
source§fn default() -> SearchMessages
fn default() -> SearchMessages
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SearchMessages
impl<'de> Deserialize<'de> for SearchMessages
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