pub struct AttachmentFilter {
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<AttachmentFilter>>>,
pub or: Option<Vec<Box<AttachmentFilter>>>,
}Expand description
Attachment 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<AttachmentFilter>>>Compound filters, all of which need to be matched by the attachment.
or: Option<Vec<Box<AttachmentFilter>>>Compound filters, one of which need to be matched by the attachment.
Trait Implementations§
Source§impl Clone for AttachmentFilter
impl Clone for AttachmentFilter
Source§fn clone(&self) -> AttachmentFilter
fn clone(&self) -> AttachmentFilter
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 AttachmentFilter
impl Debug for AttachmentFilter
Source§impl Default for AttachmentFilter
impl Default for AttachmentFilter
Source§fn default() -> AttachmentFilter
fn default() -> AttachmentFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttachmentFilter
impl<'de> Deserialize<'de> for AttachmentFilter
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 AttachmentFilter
impl RefUnwindSafe for AttachmentFilter
impl Send for AttachmentFilter
impl Sync for AttachmentFilter
impl Unpin for AttachmentFilter
impl UnwindSafe for AttachmentFilter
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