pub struct ReactionCollectionFilter {
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<ReactionCollectionFilter>>>,
pub or: Option<Vec<Box<ReactionCollectionFilter>>>,
pub some: Option<Box<ReactionFilter>>,
pub every: Option<Box<ReactionFilter>>,
pub length: Option<Box<NumberComparator>>,
}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<ReactionCollectionFilter>>>Compound filters, all of which need to be matched by the reaction.
or: Option<Vec<Box<ReactionCollectionFilter>>>Compound filters, one of which need to be matched by the reaction.
some: Option<Box<ReactionFilter>>Filters that needs to be matched by some reactions.
every: Option<Box<ReactionFilter>>Filters that needs to be matched by all reactions.
length: Option<Box<NumberComparator>>Comparator for the collection length.
Trait Implementations§
Source§impl Clone for ReactionCollectionFilter
impl Clone for ReactionCollectionFilter
Source§fn clone(&self) -> ReactionCollectionFilter
fn clone(&self) -> ReactionCollectionFilter
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 ReactionCollectionFilter
impl Debug for ReactionCollectionFilter
Source§impl Default for ReactionCollectionFilter
impl Default for ReactionCollectionFilter
Source§fn default() -> ReactionCollectionFilter
fn default() -> ReactionCollectionFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReactionCollectionFilter
impl<'de> Deserialize<'de> for ReactionCollectionFilter
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 ReactionCollectionFilter
impl RefUnwindSafe for ReactionCollectionFilter
impl Send for ReactionCollectionFilter
impl Sync for ReactionCollectionFilter
impl Unpin for ReactionCollectionFilter
impl UnwindSafe for ReactionCollectionFilter
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