Struct rust_tdlib::types::SearchChatMessages
source · pub struct SearchChatMessages { /* private fields */ }
Expand description
Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query (searchSecretMessages must be used instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
Implementations§
source§impl SearchChatMessages
impl SearchChatMessages
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> SearchChatMessagesBuilder
pub fn chat_id(&self) -> i64
pub fn query(&self) -> &String
pub fn sender_id(&self) -> &MessageSender
pub fn from_message_id(&self) -> i64
pub fn offset(&self) -> i32
pub fn limit(&self) -> i32
pub fn filter(&self) -> &SearchMessagesFilter
pub fn message_thread_id(&self) -> i64
Trait Implementations§
source§impl AsRef<SearchChatMessages> for SearchChatMessages
impl AsRef<SearchChatMessages> for SearchChatMessages
source§fn as_ref(&self) -> &SearchChatMessages
fn as_ref(&self) -> &SearchChatMessages
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SearchChatMessages
impl Clone for SearchChatMessages
source§fn clone(&self) -> SearchChatMessages
fn clone(&self) -> SearchChatMessages
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 SearchChatMessages
impl Debug for SearchChatMessages
source§impl Default for SearchChatMessages
impl Default for SearchChatMessages
source§fn default() -> SearchChatMessages
fn default() -> SearchChatMessages
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SearchChatMessages
impl<'de> Deserialize<'de> for SearchChatMessages
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