pub enum SearchHasType {
Embed,
File,
Image,
Link,
Poll,
Snapshot,
Sound,
Sticker,
Video,
}Expand description
Filter messages by whether they have a particular type of data.
All types can be negated, which means results will not include messages that match the type.
Variants§
Embed
Return messages that have an embed.
File
Return messages that have an attachment.
Image
Return messages that have an image.
Link
Return messages that have a link.
Poll
Return messages that have a poll.
Snapshot
Return messages that have a forwarded message.
Sound
Return messages that have a sound attachment.
Sticker
Return messages that have a sent sticker.
Video
Return messages that have a video.
Trait Implementations§
Source§impl Clone for SearchHasType
impl Clone for SearchHasType
impl Copy for SearchHasType
Source§impl Debug for SearchHasType
impl Debug for SearchHasType
Source§impl<'de> Deserialize<'de> for SearchHasType
impl<'de> Deserialize<'de> for SearchHasType
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 Display for SearchHasType
impl Display for SearchHasType
impl Eq for SearchHasType
Source§impl Hash for SearchHasType
impl Hash for SearchHasType
impl Negate for SearchHasType
Source§impl PartialEq for SearchHasType
impl PartialEq for SearchHasType
Source§impl Serialize for SearchHasType
impl Serialize for SearchHasType
impl StructuralPartialEq for SearchHasType
Auto Trait Implementations§
impl Forget for SearchHasType
impl Freeze for SearchHasType
impl Move for SearchHasType
impl RefUnwindSafe for SearchHasType
impl Send for SearchHasType
impl Sync for SearchHasType
impl Unpin for SearchHasType
impl UnsafeUnpin for SearchHasType
impl UnwindSafe for SearchHasType
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