Enum rtdlib::types::SearchMessagesFilter [−][src]
pub enum SearchMessagesFilter {
Show 16 variants
Animation(SearchMessagesFilterAnimation),
Audio(SearchMessagesFilterAudio),
Call(SearchMessagesFilterCall),
ChatPhoto(SearchMessagesFilterChatPhoto),
Document(SearchMessagesFilterDocument),
Empty(SearchMessagesFilterEmpty),
Mention(SearchMessagesFilterMention),
MissedCall(SearchMessagesFilterMissedCall),
Photo(SearchMessagesFilterPhoto),
PhotoAndVideo(SearchMessagesFilterPhotoAndVideo),
UnreadMention(SearchMessagesFilterUnreadMention),
Url(SearchMessagesFilterUrl),
Video(SearchMessagesFilterVideo),
VideoNote(SearchMessagesFilterVideoNote),
VoiceAndVideoNote(SearchMessagesFilterVoiceAndVideoNote),
VoiceNote(SearchMessagesFilterVoiceNote),
// some variants omitted
}
Expand description
Represents a filter for message search results
Variants
Returns only animation messages
Tuple Fields of Animation
Returns only audio messages
Tuple Fields of Audio
Returns only call messages
Tuple Fields of Call
Returns only messages containing chat photos
Tuple Fields of ChatPhoto
Returns only document messages
Tuple Fields of Document
Returns all found messages, no filter is applied
Tuple Fields of Empty
Returns only messages with mentions of the current user, or messages that are replies to their messages
Tuple Fields of Mention
Returns only incoming call messages with missed/declined discard reasons
Tuple Fields of MissedCall
Returns only photo messages
Tuple Fields of Photo
Returns only photo and video messages
Tuple Fields of PhotoAndVideo
Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can’t be additionally filtered by a query or by the sending user
Tuple Fields of UnreadMention
Returns only messages containing URLs
Tuple Fields of Url
Returns only video messages
Tuple Fields of Video
Returns only video note messages
Tuple Fields of VideoNote
Returns only voice and video note messages
Tuple Fields of VoiceAndVideoNote
Returns only voice note messages
Tuple Fields of VoiceNote
Implementations
pub fn on_photo_and_video<F: FnOnce(&SearchMessagesFilterPhotoAndVideo)>(
&self,
fnc: F
) -> &Self
pub fn on_unread_mention<F: FnOnce(&SearchMessagesFilterUnreadMention)>(
&self,
fnc: F
) -> &Self
pub fn on_voice_and_video_note<F: FnOnce(&SearchMessagesFilterVoiceAndVideoNote)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<SearchMessagesFilter, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<SearchMessagesFilter, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SearchMessagesFilter
impl Send for SearchMessagesFilter
impl Sync for SearchMessagesFilter
impl Unpin for SearchMessagesFilter
impl UnwindSafe for SearchMessagesFilter
Blanket Implementations
Mutably borrows from an owned value. Read more