pub struct GovernanceChainLink {
pub id: GovernanceLogId,
pub entry_type: GovernanceLogEntryType,
pub created_at: DateTime<Utc>,
pub attestation: GovernanceAttestation,
pub data: Option<Value>,
pub texts: Option<AmendmentTexts>,
}Expand description
One link of the chain as GET /api/governance/log/chain returns it —
everything needed to verify linkage and signatures, plus data for the
entries a verifier has to read
Fields§
§id: GovernanceLogId§entry_type: GovernanceLogEntryType§created_at: DateTime<Utc>§attestation: GovernanceAttestation§data: Option<Value>Present for amendment and key_rotation entries, whose content
is what the chain means and is small by construction. A Council
transcript is neither, and is read one entry at a time instead.
verify_chain hashes this raw value against data_hash before
reading it, so unknown future fields neither break an older
verifier nor escape the signature.
texts: Option<AmendmentTexts>The texts a version 2 Amendment commits to, as far as the
platform still holds them. Outside the envelope on purpose: a text
can be erased without the chain changing.
Trait Implementations§
Source§impl Clone for GovernanceChainLink
impl Clone for GovernanceChainLink
Source§fn clone(&self) -> GovernanceChainLink
fn clone(&self) -> GovernanceChainLink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GovernanceChainLink
impl Debug for GovernanceChainLink
Source§impl<'de> Deserialize<'de> for GovernanceChainLink
impl<'de> Deserialize<'de> for GovernanceChainLink
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 GovernanceChainLink
Source§impl PartialEq for GovernanceChainLink
impl PartialEq for GovernanceChainLink
Source§impl Serialize for GovernanceChainLink
impl Serialize for GovernanceChainLink
impl StructuralPartialEq for GovernanceChainLink
Auto Trait Implementations§
impl Freeze for GovernanceChainLink
impl RefUnwindSafe for GovernanceChainLink
impl Send for GovernanceChainLink
impl Sync for GovernanceChainLink
impl Unpin for GovernanceChainLink
impl UnsafeUnpin for GovernanceChainLink
impl UnwindSafe for GovernanceChainLink
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