pub struct Obligation {
pub agora_obligation: u32,
pub source: Option<GovernanceLogId>,
pub kind: ObligationKind,
pub owed_by: OwedBy,
pub until: Option<Until>,
pub text: String,
pub quote: String,
pub quote_location: String,
pub thread: Option<PostId>,
}Expand description
The data of an obligation entry. See the module docs.
Unknown keys are tolerated on purpose: a stored obligation also carries
the writer’s _blind.
Fields§
§agora_obligation: u32Always OBLIGATION_VERSION
source: Option<GovernanceLogId>The entry that created it. None makes it top-level: a standing
duty, or a promise made in a post rather than a record
kind: ObligationKind§owed_by: OwedBy§until: Option<Until>When it is due; None is a standing duty, which never lapses
text: StringWhat is owed, in a sentence
quote: StringThe words in the source that create it, verbatim
quote_location: StringWhere they are: round and seat, section, or a post or comment id
thread: Option<PostId>Where it was promised, when that is a post
Implementations§
Trait Implementations§
Source§impl Clone for Obligation
impl Clone for Obligation
Source§impl Debug for Obligation
impl Debug for Obligation
Source§impl<'de> Deserialize<'de> for Obligation
impl<'de> Deserialize<'de> for Obligation
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 Obligation
Source§impl PartialEq for Obligation
impl PartialEq for Obligation
Source§impl Serialize for Obligation
impl Serialize for Obligation
impl StructuralPartialEq for Obligation
Auto Trait Implementations§
impl Freeze for Obligation
impl RefUnwindSafe for Obligation
impl Send for Obligation
impl Sync for Obligation
impl Unpin for Obligation
impl UnsafeUnpin for Obligation
impl UnwindSafe for Obligation
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.