pub enum OpRecord<ET, LT> where
    ET: UnitEnum
{
Show 18 variants CreateEntry { entry_hash: EntryHash, entry_type: ET, }, CreatePrivateEntry { entry_hash: EntryHash, entry_type: <ET as UnitEnum>::Unit, }, CreateAgent(AgentPubKey), CreateCapClaim(EntryHash), CreateCapGrant(EntryHash), UpdateEntry { entry_hash: EntryHash, original_action_hash: ActionHash, original_entry_hash: EntryHash, entry_type: ET, }, UpdatePrivateEntry { entry_hash: EntryHash, original_action_hash: ActionHash, original_entry_hash: EntryHash, entry_type: <ET as UnitEnum>::Unit, }, UpdateAgent { new_key: AgentPubKey, original_key: AgentPubKey, original_action_hash: ActionHash, }, UpdateCapClaim { entry_hash: EntryHash, original_action_hash: ActionHash, original_entry_hash: EntryHash, }, UpdateCapGrant { entry_hash: EntryHash, original_action_hash: ActionHash, original_entry_hash: EntryHash, }, DeleteEntry { original_action_hash: ActionHash, original_entry_hash: EntryHash, }, CreateLink { base_address: AnyLinkableHash, target_address: AnyLinkableHash, tag: LinkTag, link_type: LT, }, DeleteLink(ActionHash), Dna(DnaHash), OpenChain(DnaHash), CloseChain(DnaHash), AgentValidationPkg(Option<MembraneProof>), InitZomesComplete,
}
Expand description

Data specific to the Op::StoreRecord operation.

Variants

CreateEntry

Fields

entry_hash: EntryHash

The hash of the Entry being created.

entry_type: ET

The app defined entry type with the deserialized Entry data.

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

CreatePrivateEntry

Fields

entry_hash: EntryHash

The hash of the Entry being created.

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.

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

CreateAgent(AgentPubKey)

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

CreateCapClaim(EntryHash)

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

CreateCapGrant(EntryHash)

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

UpdateEntry

Fields

entry_hash: EntryHash

The hash of the newly created Entry.

original_action_hash: ActionHash

The hash of the original Action.

original_entry_hash: EntryHash

The hash of the original Entry.

entry_type: 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.

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

UpdatePrivateEntry

Fields

entry_hash: EntryHash

The hash of the newly created Entry.

original_action_hash: ActionHash

The hash of the original Action.

original_entry_hash: EntryHash

The hash of the original Entry.

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.

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

UpdateAgent

Fields

new_key: AgentPubKey

The new AgentPubKey.

original_key: AgentPubKey

The original AgentPubKey.

original_action_hash: ActionHash

The hash of the original keys Action.

This operation stores the Record for an updated AgentPubKey.

UpdateCapClaim

Fields

entry_hash: EntryHash

The hash of the newly created Capability Claim.

original_action_hash: ActionHash

The hash of the original Capability Claim’s Action.

original_entry_hash: EntryHash

The hash of the original Capability Claim.

This operation stores the Record for an updated Capability Claim.

UpdateCapGrant

Fields

entry_hash: EntryHash

The hash of the newly created Capability Grant.

original_action_hash: ActionHash

The hash of the original Capability Grant’s Action.

original_entry_hash: EntryHash

The hash of the original Capability Grant.

This operation stores the Record for an updated Capability Grant.

DeleteEntry

Fields

original_action_hash: ActionHash

The hash of the deleted entry’s Action.

original_entry_hash: EntryHash

The hash of the deleted entry.

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

Fields

base_address: AnyLinkableHash

The base address of the link.

target_address: AnyLinkableHash

The target address of the link.

tag: LinkTag

The link’s tag.

link_type: LT

The app defined link type of this link.

This operation stores the Record for a new link.

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

Dna(DnaHash)

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

OpenChain(DnaHash)

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

CloseChain(DnaHash)

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

AgentValidationPkg(Option<MembraneProof>)

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

InitZomesComplete

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 !=.

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

Compare self to key and return true if they are equal.

Returns the argument unchanged.

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

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.