pub struct ObligationData {
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: what was signed, and never
changes but by a [Revision]. See the module docs, and
Obligation for the entry as the log has it now.
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 ObligationData
impl Clone for ObligationData
Source§impl Debug for ObligationData
impl Debug for ObligationData
Source§impl<'de> Deserialize<'de> for ObligationData
impl<'de> Deserialize<'de> for ObligationData
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 ObligationData
Source§impl PartialEq for ObligationData
impl PartialEq for ObligationData
Source§impl Serialize for ObligationData
impl Serialize for ObligationData
impl StructuralPartialEq for ObligationData
Auto Trait Implementations§
impl Freeze for ObligationData
impl RefUnwindSafe for ObligationData
impl Send for ObligationData
impl Sync for ObligationData
impl Unpin for ObligationData
impl UnsafeUnpin for ObligationData
impl UnwindSafe for ObligationData
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.