pub struct SearchArgs {
pub query: Option<String>,
pub tags: Vec<String>,
pub area_id: Option<String>,
pub project_id: Option<String>,
pub status: Option<ProjectStatusArg>,
pub due_before: Option<String>,
pub due_after: Option<String>,
pub scheduled_before: Option<String>,
pub scheduled_after: Option<String>,
pub limit: Option<u32>,
}Fields§
§query: Option<String>Free-text query, matched against the to-do’s title and notes (case-insensitive substring; no boolean / wildcard syntax).
Tag titles or UUIDs to match. OR-semantic — an item with any listed tag is returned.
area_id: Option<String>Restrict to to-dos in a specific area (directly or via project). Optional.
project_id: Option<String>Restrict to to-dos in a specific project. Optional.
status: Option<ProjectStatusArg>open (default), done, or all.
due_before: Option<String>ISO YYYY-MM-DD. Inclusive upper bound on deadline. Optional.
due_after: Option<String>ISO YYYY-MM-DD. Inclusive lower bound on deadline. Optional.
scheduled_before: Option<String>ISO YYYY-MM-DD. Inclusive upper bound on startDate. Optional.
scheduled_after: Option<String>ISO YYYY-MM-DD. Inclusive lower bound on startDate. Optional.
limit: Option<u32>Cap on returned rows. Defaults to 50.
Trait Implementations§
Source§impl Clone for SearchArgs
impl Clone for SearchArgs
Source§fn clone(&self) -> SearchArgs
fn clone(&self) -> SearchArgs
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 SearchArgs
impl Debug for SearchArgs
Source§impl Default for SearchArgs
impl Default for SearchArgs
Source§fn default() -> SearchArgs
fn default() -> SearchArgs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchArgs
impl<'de> Deserialize<'de> for SearchArgs
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 SearchArgs
impl JsonSchema for SearchArgs
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 moreAuto Trait Implementations§
impl Freeze for SearchArgs
impl RefUnwindSafe for SearchArgs
impl Send for SearchArgs
impl Sync for SearchArgs
impl Unpin for SearchArgs
impl UnsafeUnpin for SearchArgs
impl UnwindSafe for SearchArgs
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