pub struct DocumentFilter {
pub id: Option<Box<IDComparator>>,
pub created_at: Option<Box<DateComparator>>,
pub updated_at: Option<Box<DateComparator>>,
pub title: Option<Box<StringComparator>>,
pub slug_id: Option<Box<StringComparator>>,
pub creator: Option<Box<UserFilter>>,
pub project: Option<Box<ProjectFilter>>,
pub issue: Option<Box<IssueFilter>>,
pub initiative: Option<Box<InitiativeFilter>>,
pub and: Option<Vec<Box<DocumentFilter>>>,
pub or: Option<Vec<Box<DocumentFilter>>>,
}Expand description
Document 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 document title.
slug_id: Option<Box<StringComparator>>Comparator for the document slug ID.
creator: Option<Box<UserFilter>>Filters that the document’s creator must satisfy.
project: Option<Box<ProjectFilter>>Filters that the document’s project must satisfy.
issue: Option<Box<IssueFilter>>Filters that the document’s issue must satisfy.
initiative: Option<Box<InitiativeFilter>>Filters that the document’s initiative must satisfy.
and: Option<Vec<Box<DocumentFilter>>>Compound filters, all of which need to be matched by the document.
or: Option<Vec<Box<DocumentFilter>>>Compound filters, one of which need to be matched by the document.
Trait Implementations§
Source§impl Clone for DocumentFilter
impl Clone for DocumentFilter
Source§fn clone(&self) -> DocumentFilter
fn clone(&self) -> DocumentFilter
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 DocumentFilter
impl Debug for DocumentFilter
Source§impl Default for DocumentFilter
impl Default for DocumentFilter
Source§fn default() -> DocumentFilter
fn default() -> DocumentFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentFilter
impl<'de> Deserialize<'de> for DocumentFilter
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 DocumentFilter
impl RefUnwindSafe for DocumentFilter
impl Send for DocumentFilter
impl Sync for DocumentFilter
impl Unpin for DocumentFilter
impl UnwindSafe for DocumentFilter
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