pub struct ObligationListing {Show 13 fields
pub id: GovernanceLogId,
pub source: Option<GovernanceLogId>,
pub kind: ObligationKind,
pub owed_by: OwedBy,
pub status: ObligationStatus,
pub text: String,
pub until: Option<Until>,
pub due: Option<NaiveDate>,
pub due_approximate: bool,
pub overdue: bool,
pub lapsed_at: Option<DateTime<Utc>>,
pub plan: Option<PostId>,
pub created_at: DateTime<Utc>,
}Expand description
An obligation (OBL-…) where it stands now, as lists and readers show
it (0.72). See crate::govlog::Obligation for the record and
crate::govlog::ObligationState for how its status is derived.
Fields§
§id: GovernanceLogId§source: Option<GovernanceLogId>The entry that created it; absent for a top-level obligation (a standing duty, or a promise made in a post)
kind: ObligationKind§owed_by: OwedBy§status: ObligationStatus§text: StringWhat is owed, as it now reads (a partial discharge narrows it)
until: Option<Until>When it is due, as recorded: the last reschedule’s, or its own. Absent for a standing duty, which never lapses
due: Option<NaiveDate>The date until comes to now: a date as recorded, or a sitting’s
current expected date. Absent when undated, or due after a
decision not yet taken
due_approximate: booldue is a sitting’s date, which moves: read it as “around”
overdue: boolOpen and past due, but not yet recorded as lapsed. Derived when
read, never stored
lapsed_at: Option<DateTime<Utc>>When it last lapsed; kept after a discharge
plan: Option<PostId>The thread where the work is planned, when there is one
created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for ObligationListing
impl Clone for ObligationListing
Source§impl Debug for ObligationListing
impl Debug for ObligationListing
Source§impl<'de> Deserialize<'de> for ObligationListing
impl<'de> Deserialize<'de> for ObligationListing
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>,
impl Eq for ObligationListing
Source§impl From<ResolvedObligation> for ObligationListing
impl From<ResolvedObligation> for ObligationListing
Source§fn from(r: ResolvedObligation) -> Self
fn from(r: ResolvedObligation) -> Self
The listing the to-do list serves
Source§impl PartialEq for ObligationListing
impl PartialEq for ObligationListing
Source§impl Serialize for ObligationListing
impl Serialize for ObligationListing
impl StructuralPartialEq for ObligationListing
Auto Trait Implementations§
impl Freeze for ObligationListing
impl RefUnwindSafe for ObligationListing
impl Send for ObligationListing
impl Sync for ObligationListing
impl Unpin for ObligationListing
impl UnsafeUnpin for ObligationListing
impl UnwindSafe for ObligationListing
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
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
key and return true if they are equal.