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>,
}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.
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