pub struct AttachmentCollectionFilter {Show 13 fields
pub id: Option<Box<IDComparator>>,
pub created_at: Option<Box<DateComparator>>,
pub updated_at: Option<Box<DateComparator>>,
pub title: Option<Box<StringComparator>>,
pub subtitle: Option<Box<NullableStringComparator>>,
pub url: Option<Box<StringComparator>>,
pub creator: Option<Box<NullableUserFilter>>,
pub source_type: Option<Box<SourceTypeComparator>>,
pub and: Option<Vec<Box<AttachmentCollectionFilter>>>,
pub or: Option<Vec<Box<AttachmentCollectionFilter>>>,
pub some: Option<Box<AttachmentFilter>>,
pub every: Option<Box<AttachmentFilter>>,
pub length: Option<Box<NumberComparator>>,
}Expand description
Attachment collection 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.
title: Option<Box<StringComparator>>Comparator for the title.
subtitle: Option<Box<NullableStringComparator>>Comparator for the subtitle.
url: Option<Box<StringComparator>>Comparator for the url.
creator: Option<Box<NullableUserFilter>>Filters that the attachments creator must satisfy.
source_type: Option<Box<SourceTypeComparator>>Comparator for the source type.
and: Option<Vec<Box<AttachmentCollectionFilter>>>Compound filters, all of which need to be matched by the attachment.
or: Option<Vec<Box<AttachmentCollectionFilter>>>Compound filters, one of which need to be matched by the attachment.
some: Option<Box<AttachmentFilter>>Filters that needs to be matched by some attachments.
every: Option<Box<AttachmentFilter>>Filters that needs to be matched by all attachments.
length: Option<Box<NumberComparator>>Comparator for the collection length.
Trait Implementations§
Source§impl Clone for AttachmentCollectionFilter
impl Clone for AttachmentCollectionFilter
Source§fn clone(&self) -> AttachmentCollectionFilter
fn clone(&self) -> AttachmentCollectionFilter
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 AttachmentCollectionFilter
impl Debug for AttachmentCollectionFilter
Source§impl Default for AttachmentCollectionFilter
impl Default for AttachmentCollectionFilter
Source§fn default() -> AttachmentCollectionFilter
fn default() -> AttachmentCollectionFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttachmentCollectionFilter
impl<'de> Deserialize<'de> for AttachmentCollectionFilter
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 AttachmentCollectionFilter
impl RefUnwindSafe for AttachmentCollectionFilter
impl Send for AttachmentCollectionFilter
impl Sync for AttachmentCollectionFilter
impl Unpin for AttachmentCollectionFilter
impl UnwindSafe for AttachmentCollectionFilter
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