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.

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 action creates an EntryType::AgentPubKey Entry.

source

pub fn is_cap_claim_entry_type(&self) -> bool

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

source

pub fn is_cap_grant_entry_type(&self) -> bool

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

Trait Implementations

Generate an arbitrary value of Self from the given unstructured data. Read more

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more

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.

Construct a HoloHash from a reference

Move into a HoloHashed

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.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

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