Enum kitchen_fridge::task::CompletionStatus [−][src]
Expand description
RFC5545 defines the completion as several optional fields, yet some combinations make no sense. This enum provides an API that forbids such impossible combinations.
COMPLETEDis an optional timestamp that tells whether this task is completedSTATUSis an optional field, that can be set toNEEDS-ACTION,COMPLETED, or others. Even though having aCOMPLETEDdate but aSTATUS:NEEDS-ACTIONis theorically possible, it obviously makes no sense. This API ensures this cannot happen
Variants
Completed(Option<DateTime<Utc>>)
Uncompleted
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for CompletionStatus
impl Send for CompletionStatus
impl Sync for CompletionStatus
impl Unpin for CompletionStatus
impl UnwindSafe for CompletionStatus
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more