Skip to main content

GovernanceEntryResponse

Struct GovernanceEntryResponse 

Source
pub struct GovernanceEntryResponse {
Show 23 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 summary_authorship: Option<SummaryAuthorship>, 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 cited_by: Vec<GovernanceCitation>, pub texts: Option<AmendmentTexts>, pub obligation: Option<ObligationListing>, pub obligations: Vec<ObligationListing>, pub data_file: Option<DataFileContent>, pub data_set: Option<DataSetView>,
}
Expand description

A single governance log entry as get_content returns it.

data is the record — for a Council decision, every round of deliberation — and is absent only from a detail=summary read. total_rounds is present whenever the entry has rounds.

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). On a Council decision signed with one, the record’s own summary in the version served, revisions applied (see summary_authorship); otherwise the Clerk’s, None only in the window between an entry being written and its summary being batched. See served_summary.

§summary_authorship: Option<SummaryAuthorship>

Present when summary is the decision’s signed one: who wrote and who accepted it (0.96)

§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 record, absent at detail=summary and narrowed when round or attachment was given. The default read leaves the attachments’ text out; only detail=full_with_attachments is verbatim (see attestation).

§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_with_attachments read with no round or attachment. 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.

§cited_by: Vec<GovernanceCitation>

Later entries whose records name this one other than as an amendment’s target — a Steward’s record about it, an amendment made under its authority — in chain order. (0.68)

§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)

§obligation: Option<ObligationListing>

For an obligation entry: where it stands now, from the updates in amendments (0.72)

§obligations: Vec<ObligationListing>

The obligations this entry created, oldest first, each with its status; read one with get_content (0.72)

§data_file: Option<DataFileContent>

For a data_set entry read with attachment=<path>: that file’s text, checked against the SHA-256 the manifest signs for (0.91)

§data_set: Option<DataSetView>

For a data_set entry: its files, held to the read’s budget and rolled up by directory when they do not fit; or one directory’s, read with attachment="<dir>/" (0.91)

Implementations§

Source§

impl GovernanceEntryResponse

Source

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

data typed, on a council_decision read that carries it (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.

Source

pub fn data_set(&self) -> Option<Result<DataSet, Error>>

data typed, on a data_set read that carries it (0.91)

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more