pub enum EntryCreationHeader {
    Create(Create),
    Update(Update),
}
Expand description

Either a Header::Create or a Header::Update. These headers both create a new instance of an Entry.

Variants

Create(Create)

A Header::Create that creates a new instance of an Entry.

Update(Update)

A Header::Update that creates a new instance of an Entry.

Implementations

The author of this header.

The Timestamp for this header.

The header sequence number of this header.

The previous HeaderHash of the previous header in the source chain.

The EntryType of the Entry being created.

The EntryHash of the Entry being created.

source

pub fn app_entry_type(&self) -> Option<&AppEntryType>

The AppEntryType of the Entry being created if it is an application defined Entry.

source

pub fn is_agent_entry_type(&self) -> bool

Returns true if this header creates an EntryType::AgentPubKey Entry.

source

pub fn is_cap_claim_entry_type(&self) -> bool

Returns true if this header creates an EntryType::CapClaim Entry.

source

pub fn is_cap_grant_entry_type(&self) -> bool

Returns true if this header creates an EntryType::CapGrant Entry.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Allows a EntryCreationHeader to hash the same bytes as the equivalent Header variant without needing to clone the header.

The HashType which this content will be hashed to

The HashType which this content will be hashed to

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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