pub struct GovernanceEntryResponse {
pub id: GovernanceLogId,
pub entry_type: GovernanceLogEntryType,
pub title: String,
pub created_at: DateTime<Utc>,
pub tags: Option<Vec<String>>,
pub summary: Option<String>,
pub total_rounds: Option<u64>,
pub data: Option<Value>,
pub round: Option<u64>,
pub attestation: Option<GovernanceAttestation>,
pub standing: Standing,
pub amendments: Vec<AmendmentNotice>,
}Expand description
A single governance log entry as get_content returns it.
data is the verbatim record — for a Council decision, every round of
deliberation — and is present only at detail=full. total_rounds
is always present when the entry has rounds, so a summary read can
tell the reader what paging through it would cost.
Fields§
§id: GovernanceLogId§entry_type: GovernanceLogEntryType§title: String§created_at: DateTime<Utc>§summary: Option<String>The precedent summary — a structured markdown digest, typically
a few hundred words, grounded in the Constitution (short relative
to the full record, not short in absolute terms). None only in
the window between an entry being written and its summary being
batched.
total_rounds: Option<u64>How many deliberation rounds the record holds, when it holds
rounds. Present at any detail level: it is what tells a reader
whether round= paging is available and how far it goes.
data: Option<Value>The verbatim record. Present only at detail=full, and narrowed
to a single round when round was given.
round: Option<u64>The 1-indexed round data was narrowed to, when one was
requested.
attestation: Option<GovernanceAttestation>The server’s signature and chain position for this entry; null
for an entry not yet attested. data_hash covers the full data
only — verify it against a detail=full read with no round.
See crate::govlog.
standing: StandingDerived from amendments: anything but in_force and this entry
is not citable as it stands.
amendments: Vec<AmendmentNotice>Later entries that name this one. The entry itself is never edited
— except its data, under a redaction.
Trait Implementations§
Source§impl Clone for GovernanceEntryResponse
impl Clone for GovernanceEntryResponse
Source§fn clone(&self) -> GovernanceEntryResponse
fn clone(&self) -> GovernanceEntryResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more