Enum taskchampion::storage::Operation [−][src]
pub enum Operation {
Create {
uuid: Uuid,
},
Delete {
uuid: Uuid,
},
Update {
uuid: Uuid,
property: String,
value: Option<String>,
timestamp: DateTime<Utc>,
},
}
Expand description
An Operation defines a single change to the task database
Variants
Create a new task.
On application, if the task already exists, the operation does nothing.
Fields of Create
uuid: Uuid
Delete an existing task.
On application, if the task does not exist, the operation does nothing.
Fields of Delete
uuid: Uuid
Update an existing task, setting the given property to the given value. If the value is None, then the corresponding property is deleted.
If the given task does not exist, the operation does nothing.
Implementations
Trait Implementations
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
Parsers Operation stored as JSON in string column
Converts Rust value to SQLite value
Auto Trait Implementations
impl RefUnwindSafe for Operation
impl UnwindSafe for Operation
Blanket Implementations
Mutably borrows from an owned value. Read more