pub enum AuthorType {
Bot,
User,
Webhook,
}Expand description
Filter messages by the type of author.
All types can be negated, which means results will not include messages that match the type.
Variants§
Bot
Return messages sent by bot accounts.
User
Return messages sent by user accounts.
Webhook
Return messages sent by webhooks.
Trait Implementations§
Source§impl Clone for AuthorType
impl Clone for AuthorType
impl Copy for AuthorType
Source§impl Debug for AuthorType
impl Debug for AuthorType
Source§impl<'de> Deserialize<'de> for AuthorType
impl<'de> Deserialize<'de> for AuthorType
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 AuthorType
impl Display for AuthorType
impl Eq for AuthorType
Source§impl Hash for AuthorType
impl Hash for AuthorType
impl Negate for AuthorType
Source§impl PartialEq for AuthorType
impl PartialEq for AuthorType
Source§impl Serialize for AuthorType
impl Serialize for AuthorType
impl StructuralPartialEq for AuthorType
Auto Trait Implementations§
impl Forget for AuthorType
impl Freeze for AuthorType
impl Move for AuthorType
impl RefUnwindSafe for AuthorType
impl Send for AuthorType
impl Sync for AuthorType
impl Unpin for AuthorType
impl UnsafeUnpin for AuthorType
impl UnwindSafe for AuthorType
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