pub struct ListFilter {
pub status: Option<bool>,
pub priority: Option<Priority>,
pub tags_any: Option<Vec<String>>,
pub due_before: Option<String>,
pub due_after: Option<String>,
}Expand description
Filter criteria for listing todos.
Fields§
§status: Option<bool>If set, filter by completed status.
priority: Option<Priority>If set, only items with this priority.
If set, item must have at least one of these tags.
due_before: Option<String>If set, due_date must be <= this (YYYY-MM-DD).
due_after: Option<String>If set, due_date must be >= this (YYYY-MM-DD).
Trait Implementations§
Source§impl Clone for ListFilter
impl Clone for ListFilter
Source§fn clone(&self) -> ListFilter
fn clone(&self) -> ListFilter
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 Default for ListFilter
impl Default for ListFilter
Source§fn default() -> ListFilter
fn default() -> ListFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListFilter
impl RefUnwindSafe for ListFilter
impl Send for ListFilter
impl Sync for ListFilter
impl Unpin for ListFilter
impl UnsafeUnpin for ListFilter
impl UnwindSafe for ListFilter
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