pub struct CommitHeader { /* private fields */ }Expand description
Public authenticated metadata for an encrypted commit body.
Implementations§
Source§impl CommitHeader
impl CommitHeader
Sourcepub fn new(
domain_id: DomainId,
epoch: u64,
author: AuthorId,
author_sequence: u64,
dependencies: Vec<CommitId>,
capability_id: CapabilityId,
schema_ids: Vec<SchemaId>,
nonce: [u8; 24],
) -> Result<Self, CommitCodecError>
pub fn new( domain_id: DomainId, epoch: u64, author: AuthorId, author_sequence: u64, dependencies: Vec<CommitId>, capability_id: CapabilityId, schema_ids: Vec<SchemaId>, nonce: [u8; 24], ) -> Result<Self, CommitCodecError>
Validates and constructs a canonical commit header.
Returns the authenticated endpoint author.
Returns the author’s contiguous domain-local sequence.
Sourcepub fn dependencies(&self) -> &[CommitId]
pub fn dependencies(&self) -> &[CommitId]
Returns the sorted, unique causal frontier dependencies.
Sourcepub const fn capability_id(&self) -> CapabilityId
pub const fn capability_id(&self) -> CapabilityId
Returns the capability authorizing the transaction.
Sourcepub fn schema_ids(&self) -> &[SchemaId]
pub fn schema_ids(&self) -> &[SchemaId]
Returns the sorted, unique schemas used by operations.
Trait Implementations§
Source§impl Clone for CommitHeader
impl Clone for CommitHeader
Source§fn clone(&self) -> CommitHeader
fn clone(&self) -> CommitHeader
Returns a duplicate of the value. Read more
1.0.0 · 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 CommitHeader
impl Debug for CommitHeader
Source§impl PartialEq for CommitHeader
impl PartialEq for CommitHeader
impl Eq for CommitHeader
impl StructuralPartialEq for CommitHeader
Auto Trait Implementations§
impl Freeze for CommitHeader
impl RefUnwindSafe for CommitHeader
impl Send for CommitHeader
impl Sync for CommitHeader
impl Unpin for CommitHeader
impl UnwindSafe for CommitHeader
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