pub struct DocumentQuery {
pub text: Option<TextQuery>,
pub labels: LabelFilter,
pub project: ProjectFilter,
}Expand description
A filter over a source’s documents.
No statuses, deliberately: a Document is not work and carries no
status, so there is nothing here for a status filter to compare against.
Fields§
§text: Option<TextQuery>Free-text search, when the caller asked for one.
labels: LabelFilterLabel membership.
project: ProjectFilterWhich project the document lives in.
Trait Implementations§
Source§impl Clone for DocumentQuery
impl Clone for DocumentQuery
Source§fn clone(&self) -> DocumentQuery
fn clone(&self) -> DocumentQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentQuery
impl Debug for DocumentQuery
Source§impl Default for DocumentQuery
impl Default for DocumentQuery
Source§fn default() -> DocumentQuery
fn default() -> DocumentQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentQuery
impl<'de> Deserialize<'de> for DocumentQuery
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
Source§impl JsonSchema for DocumentQuery
impl JsonSchema for DocumentQuery
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DocumentQuery
impl PartialEq for DocumentQuery
Source§impl Serialize for DocumentQuery
impl Serialize for DocumentQuery
impl StructuralPartialEq for DocumentQuery
Auto Trait Implementations§
impl Freeze for DocumentQuery
impl RefUnwindSafe for DocumentQuery
impl Send for DocumentQuery
impl Sync for DocumentQuery
impl Unpin for DocumentQuery
impl UnsafeUnpin for DocumentQuery
impl UnwindSafe for DocumentQuery
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