pub enum VerifyPredicate {
CreateByTitle {
title: String,
since_unix: f64,
kind: TaskKind,
},
UpdateById {
id: String,
expected_title: Option<String>,
expected_notes: Option<String>,
},
StatusChange {
id: String,
want: TaskStatus,
},
MoveById {
id: String,
expected_list_id: Option<String>,
},
TagOnTodoById {
id: String,
tag: String,
present: bool,
},
}Variants§
CreateByTitle
A row with this title and creationDate ≥ since_unix should exist.
kind selects the row’s type column: Todo → 0, Project → 1.
UpdateById
The row at this id should match all populated expected_* fields.
StatusChange
The row at this id should have this status.
MoveById
The row at this id should have its project/area column set to the
expected_list_id. Some(uuid) matches when t.project = uuid OR
t.area = uuid. None matches when BOTH columns are NULL (the inbox).
TagOnTodoById
The row at id either does or doesn’t have the named tag, depending
on present. Used by things_assign_tag (present: true) and
things_unassign_tag (present: false). Tag matched by title via
the TMTaskTag→TMTag join.
Trait Implementations§
Source§impl Clone for VerifyPredicate
impl Clone for VerifyPredicate
Source§fn clone(&self) -> VerifyPredicate
fn clone(&self) -> VerifyPredicate
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 moreAuto Trait Implementations§
impl Freeze for VerifyPredicate
impl RefUnwindSafe for VerifyPredicate
impl Send for VerifyPredicate
impl Sync for VerifyPredicate
impl Unpin for VerifyPredicate
impl UnsafeUnpin for VerifyPredicate
impl UnwindSafe for VerifyPredicate
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