Enum holochain_zome_types::header::Header [−][src]
pub enum Header { Dna(Dna), AgentValidationPkg(AgentValidationPkg), InitZomesComplete(InitZomesComplete), CreateLink(CreateLink), DeleteLink(DeleteLink), OpenChain(OpenChain), CloseChain(CloseChain), Create(Create), Update(Update), Delete(Delete), }
Expand description
Header contains variants for each type of header.
This struct really defines a local source chain, in the sense that it implements the pointers between hashes that a hash chain relies on, which are then used to check the integrity of data using cryptographic hash functions.
Variants
Dna(Dna)
AgentValidationPkg(AgentValidationPkg)
InitZomesComplete(InitZomesComplete)
CreateLink(CreateLink)
DeleteLink(DeleteLink)
OpenChain(OpenChain)
CloseChain(CloseChain)
Create(Create)
Update(Update)
Delete(Delete)
Implementations
Some necessary extra mutators for lenses/prisms over Headers
returns a mutable reference to the author
returns a mutable reference to the sequence ordinal of this header
returns the previous header except for the DNA header which doesn’t have a previous
Returns the address and entry type of the Entry, if applicable.
returns the public key of the agent who signed this header.
returns the sequence ordinal of this header
returns the previous header except for the DNA header which doesn’t have a previous
Trait Implementations
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
Return a subset of the content, either as SerializedBytes “content”, which will be used to compute the hash, or as an already precomputed hash which will be used directly Read more
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Header
impl UnwindSafe for Header
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more