pub enum EntryCreationAction {
    Create(Create<EntryRateWeight>),
    Update(Update<EntryRateWeight>),
}
Expand description

Either a Action::Create or a Action::Update. These actions both create a new instance of an Entry.

Variants

Create(Create<EntryRateWeight>)

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

Update(Update<EntryRateWeight>)

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

Implementations

The author of this action.

The Timestamp for this action.

The action sequence number of this action.

The previous ActionHash of the previous action in the source chain.

The EntryType of the Entry being created.

The EntryHash of the Entry being created.

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

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

pub fn is_agent_entry_type(&self) -> bool

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

pub fn is_cap_claim_entry_type(&self) -> bool

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

pub fn is_cap_grant_entry_type(&self) -> bool

Returns true if this action 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

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Allows a EntryCreationAction to hash the same bytes as the equivalent Action variant without needing to clone the action.

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

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

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 type for metadata in pointers and references to Self.

The resulting type after obtaining ownership.

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

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