pub struct ReactionFilter {
pub id: Option<Box<IDComparator>>,
pub created_at: Option<Box<DateComparator>>,
pub updated_at: Option<Box<DateComparator>>,
pub emoji: Option<Box<StringComparator>>,
pub custom_emoji_id: Option<Box<IDComparator>>,
pub and: Option<Vec<Box<ReactionFilter>>>,
pub or: Option<Vec<Box<ReactionFilter>>>,
}Expand description
Reaction filtering options.
Fields§
§id: Option<Box<IDComparator>>Comparator for the identifier.
created_at: Option<Box<DateComparator>>Comparator for the created at date.
updated_at: Option<Box<DateComparator>>Comparator for the updated at date.
emoji: Option<Box<StringComparator>>Comparator for the reactions emoji.
custom_emoji_id: Option<Box<IDComparator>>Comparator for the reactions custom emoji.
and: Option<Vec<Box<ReactionFilter>>>Compound filters, all of which need to be matched by the reaction.
or: Option<Vec<Box<ReactionFilter>>>Compound filters, one of which need to be matched by the reaction.
Trait Implementations§
Source§impl Clone for ReactionFilter
impl Clone for ReactionFilter
Source§fn clone(&self) -> ReactionFilter
fn clone(&self) -> ReactionFilter
Returns a duplicate 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 ReactionFilter
impl Debug for ReactionFilter
Source§impl Default for ReactionFilter
impl Default for ReactionFilter
Source§fn default() -> ReactionFilter
fn default() -> ReactionFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReactionFilter
impl<'de> Deserialize<'de> for ReactionFilter
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
Auto Trait Implementations§
impl Freeze for ReactionFilter
impl RefUnwindSafe for ReactionFilter
impl Send for ReactionFilter
impl Sync for ReactionFilter
impl Unpin for ReactionFilter
impl UnwindSafe for ReactionFilter
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