Skip to main content

GovernanceEntryResponse

Struct GovernanceEntryResponse 

Source
pub struct GovernanceEntryResponse {
Show 17 fields 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 attachments: Vec<AttachmentListing>, pub attachment: Option<String>, pub version: Option<RecordVersion>, pub revisions: Vec<GovernanceLogId>, pub attestation: Option<GovernanceAttestation>, pub standing: Standing, pub amendments: Vec<AmendmentNotice>, pub texts: Option<AmendmentTexts>,
}
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>§tags: Option<Vec<String>>§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.

§attachments: Vec<AttachmentListing>

The record’s attachments, listed at any detail level so a reader knows they exist; read one with attachment=<name>. (0.42)

§attachment: Option<String>

The attachment data was narrowed to, when one was requested. (0.42)

§version: Option<RecordVersion>

The RecordVersion data is, when one was requested (0.43)

§revisions: Vec<GovernanceLogId>

The revisions applied, in chain order, to the stored data to produce what was served: empty for the original. (0.43)

§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: Standing

Derived 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.

§texts: Option<AmendmentTexts>

For an amendment entry written since 0.28: the words its data commits to — basis, note, rationale — and the salt that opens each commitment, as far as the platform still holds them. data alone shows only the commitments. A text that was lawfully withheld is simply absent. (0.29)

Implementations§

Source§

impl GovernanceEntryResponse

Source

pub fn council_decision(&self) -> Option<Result<CouncilDecisionRecord, Error>>

data typed, on a council_decision read with detail=full (with rounds narrowed when round was given). None for any other entry or read.

Verify data_hash against data, not against this. An Err means a shape this version doesn’t know, or a redaction of a value the record doesn’t type as Redactable; data still has everything.

Trait Implementations§

Source§

impl Clone for GovernanceEntryResponse

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GovernanceEntryResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GovernanceEntryResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for GovernanceEntryResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PendingHandle for T
where T: Send + 'static,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V