Enum hdk::prelude::OpRecord

pub enum OpRecord<ET, LT>where
    ET: UnitEnum,
{
Show 18 variants CreateEntry { app_entry: ET, action: Create<EntryRateWeight>, }, CreatePrivateEntry { app_entry_type: <ET as UnitEnum>::Unit, action: Create<EntryRateWeight>, }, CreateAgent { agent: HoloHash<Agent>, action: Create<EntryRateWeight>, }, CreateCapClaim { action: Create<EntryRateWeight>, }, CreateCapGrant { action: Create<EntryRateWeight>, }, UpdateEntry { original_action_hash: HoloHash<Action>, original_entry_hash: HoloHash<Entry>, app_entry: ET, action: Update<EntryRateWeight>, }, UpdatePrivateEntry { original_action_hash: HoloHash<Action>, original_entry_hash: HoloHash<Entry>, app_entry_type: <ET as UnitEnum>::Unit, action: Update<EntryRateWeight>, }, UpdateAgent { original_key: HoloHash<Agent>, new_key: HoloHash<Agent>, original_action_hash: HoloHash<Action>, action: Update<EntryRateWeight>, }, UpdateCapClaim { original_action_hash: HoloHash<Action>, original_entry_hash: HoloHash<Entry>, action: Update<EntryRateWeight>, }, UpdateCapGrant { original_action_hash: HoloHash<Action>, original_entry_hash: HoloHash<Entry>, action: Update<EntryRateWeight>, }, DeleteEntry { original_action_hash: HoloHash<Action>, original_entry_hash: HoloHash<Entry>, action: Delete<RateWeight>, }, CreateLink { base_address: HoloHash<AnyLinkable>, target_address: HoloHash<AnyLinkable>, tag: LinkTag, link_type: LT, action: CreateLink<RateWeight>, }, DeleteLink { original_action_hash: HoloHash<Action>, base_address: HoloHash<AnyLinkable>, action: DeleteLink, }, Dna { dna_hash: HoloHash<Dna>, action: Dna, }, OpenChain { previous_dna_hash: HoloHash<Dna>, action: OpenChain, }, CloseChain { new_dna_hash: HoloHash<Dna>, action: CloseChain, }, AgentValidationPkg { membrane_proof: Option<Arc<SerializedBytes>>, action: AgentValidationPkg, }, InitZomesComplete { action: InitZomesComplete, },
}
Expand description

Data specific to the Op::StoreRecord operation.

Variants§

§

CreateEntry

Fields

§app_entry: ET

The app defined entry type with the deserialized Entry data.

§action: Create<EntryRateWeight>

The Create action that creates the entry

This operation stores the Record for an app defined entry type.

§

CreatePrivateEntry

Fields

§app_entry_type: <ET as UnitEnum>::Unit

The unit version of the app defined entry type. Note it is not possible to deserialize the full entry type here because we don’t have the Entry data.

§action: Create<EntryRateWeight>

The Create action that creates the entry

This operation stores the Record for an app defined private entry type.

§

CreateAgent

Fields

§agent: HoloHash<Agent>

The agent that was created

§action: Create<EntryRateWeight>

The Create action that creates the entry

This operation stores the Record for an AgentPubKey that has been created.

§

CreateCapClaim

Fields

§action: Create<EntryRateWeight>

The Create action that creates the crate::CapClaim

This operation stores the Record for a Capability Claim that has been created.

§

CreateCapGrant

Fields

§action: Create<EntryRateWeight>

The Create action that creates the crate::CapGrant

This operation stores the Record for a Capability Grant that has been created.

§

UpdateEntry

Fields

§original_action_hash: HoloHash<Action>

The hash of the Action that created the original entry

§original_entry_hash: HoloHash<Entry>

The hash of the original entry

§app_entry: ET

The app defined entry type with the deserialized Entry data from the new entry. Note the new entry type is always the same as the original entry type however the data may have changed.

§action: Update<EntryRateWeight>

The Update action that updates the entry

This operation stores the Record for an updated app defined entry type.

§

UpdatePrivateEntry

Fields

§original_action_hash: HoloHash<Action>

The hash of the Action that created the original entry

§original_entry_hash: HoloHash<Entry>

The hash of the original entry

§app_entry_type: <ET as UnitEnum>::Unit

The unit version of the app defined entry type. Note the new entry type is always the same as the original entry type however the data may have changed.

§action: Update<EntryRateWeight>

The Update action that updates the entry

This operation stores the Record for an updated app defined private entry type.

§

UpdateAgent

Fields

§original_key: HoloHash<Agent>

The original AgentPubKey.

§new_key: HoloHash<Agent>

The new AgentPubKey.

§original_action_hash: HoloHash<Action>

The hash of the Action that created the original key

§action: Update<EntryRateWeight>

The Update action that updates the entry

This operation stores the Record for an updated AgentPubKey.

§

UpdateCapClaim

Fields

§original_action_hash: HoloHash<Action>

The hash of the Action that created the original crate::CapClaim

§original_entry_hash: HoloHash<Entry>

The hash of the original crate::CapClaim

§action: Update<EntryRateWeight>

The Update action that updates the crate::CapClaim

This operation stores the Record for an updated Capability Claim.

§

UpdateCapGrant

Fields

§original_action_hash: HoloHash<Action>

The hash of the Action that created the original crate::CapGrant

§original_entry_hash: HoloHash<Entry>

The hash of the original crate::CapGrant

§action: Update<EntryRateWeight>

The Update action that updates the crate::CapGrant

This operation stores the Record for an updated Capability Grant.

§

DeleteEntry

Fields

§original_action_hash: HoloHash<Action>

The hash of the Action that created the original entry

§original_entry_hash: HoloHash<Entry>

The hash of the original entry

§action: Delete<RateWeight>

The Delete action that creates the entry

This operation stores the Record for a deleted app defined entry type.

Fields

§base_address: HoloHash<AnyLinkable>

The base address of the link.

§target_address: HoloHash<AnyLinkable>

The target address of the link.

§tag: LinkTag

The link’s tag.

§link_type: LT

The app defined link type of this link.

§action: CreateLink<RateWeight>

The CreateLink action that creates this link

This operation stores the Record for a new link.

Fields

§original_action_hash: HoloHash<Action>

The deleted links CreateLink Action.

§base_address: HoloHash<AnyLinkable>

The base address where this link is stored. This is the base address of the link that is being deleted.

§action: DeleteLink

The DeleteLink action that deletes the link

This operation stores the Record for a deleted link and contains the original link’s Action hash.

§

Dna

Fields

§dna_hash: HoloHash<Dna>

The hash of the DNA

§action: Dna

The Dna action

This operation stores the Record for an Action::Dna.

§

OpenChain

Fields

§previous_dna_hash: HoloHash<Dna>

Hash of the prevous DNA that we are migrating from

§action: OpenChain

The OpenChain action

This operation stores the Record for an Action::OpenChain and contains the previous chains’s DnaHash.

§

CloseChain

Fields

§new_dna_hash: HoloHash<Dna>

Hash of the new DNA that we are migrating to

§action: CloseChain

The CloseChain action

This operation stores the Record for an Action::CloseChain and contains the new chains’s DnaHash.

§

AgentValidationPkg

Fields

§membrane_proof: Option<Arc<SerializedBytes>>

The membrane proof proving that the agent is allowed to participate in this DNA

This operation stores the Record for an Action::AgentValidationPkg and contains the membrane proof if there is one.

§

InitZomesComplete

Fields

This operation stores the Record for an Action::InitZomesComplete.

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
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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
Compare self to key and return true if they are equal.

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.
upcast ref
upcast mut ref
upcast boxed dyn
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