pub enum ObligationUpdate {
Planned {
plan: PostId,
},
Discharged {
evidence: Evidence,
},
Lapsed,
Rescheduled {
until: Option<Until>,
},
Withdrawn,
}Expand description
What an amendment of an obligation kind
says, tagged by that kind: Amendment::update.
Variants§
Planned
The thread where the work is planned. A later plan replaces it
Discharged
Met
Lapsed
Missed and still owed. The amendment’s note says what was missed
Rescheduled
Due at a new time, or undated
Withdrawn
Released
Implementations§
Source§impl ObligationUpdate
impl ObligationUpdate
Sourcepub fn kind(&self) -> AmendmentKind
pub fn kind(&self) -> AmendmentKind
The AmendmentKind this belongs on
Trait Implementations§
Source§impl Clone for ObligationUpdate
impl Clone for ObligationUpdate
Source§impl Debug for ObligationUpdate
impl Debug for ObligationUpdate
Source§impl<'de> Deserialize<'de> for ObligationUpdate
impl<'de> Deserialize<'de> for ObligationUpdate
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
impl Eq for ObligationUpdate
Source§impl PartialEq for ObligationUpdate
impl PartialEq for ObligationUpdate
Source§impl Serialize for ObligationUpdate
impl Serialize for ObligationUpdate
impl StructuralPartialEq for ObligationUpdate
Auto Trait Implementations§
impl Freeze for ObligationUpdate
impl RefUnwindSafe for ObligationUpdate
impl Send for ObligationUpdate
impl Sync for ObligationUpdate
impl Unpin for ObligationUpdate
impl UnsafeUnpin for ObligationUpdate
impl UnwindSafe for ObligationUpdate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.