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

Data specific to the Op::StoreRecord operation.

Variants§

§

CreateEntry

Fields

§entry_hash: HoloHash<Entry>

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: HoloHash<Entry>

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(HoloHash<Agent>)

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

§

CreateCapClaim(HoloHash<Entry>)

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

§

CreateCapGrant(HoloHash<Entry>)

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

§

UpdateEntry

Fields

§entry_hash: HoloHash<Entry>

The hash of the newly created Entry.

§original_action_hash: HoloHash<Action>

The hash of the original Action.

§original_entry_hash: HoloHash<Entry>

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: HoloHash<Entry>

The hash of the newly created Entry.

§original_action_hash: HoloHash<Action>

The hash of the original Action.

§original_entry_hash: HoloHash<Entry>

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: HoloHash<Agent>

The new AgentPubKey.

§original_key: HoloHash<Agent>

The original AgentPubKey.

§original_action_hash: HoloHash<Action>

The hash of the original keys Action.

This operation stores the Record for an updated AgentPubKey.

§

UpdateCapClaim

Fields

§entry_hash: HoloHash<Entry>

The hash of the newly created Capability Claim.

§original_action_hash: HoloHash<Action>

The hash of the original Capability Claim’s Action.

§original_entry_hash: HoloHash<Entry>

The hash of the original Capability Claim.

This operation stores the Record for an updated Capability Claim.

§

UpdateCapGrant

Fields

§entry_hash: HoloHash<Entry>

The hash of the newly created Capability Grant.

§original_action_hash: HoloHash<Action>

The hash of the original Capability Grant’s Action.

§original_entry_hash: HoloHash<Entry>

The hash of the original Capability Grant.

This operation stores the Record for an updated Capability Grant.

§

DeleteEntry

Fields

§original_action_hash: HoloHash<Action>

The hash of the deleted entry’s Action.

§original_entry_hash: HoloHash<Entry>

The hash of the deleted 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.

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(HoloHash<Dna>)

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

§

OpenChain(HoloHash<Dna>)

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

§

CloseChain(HoloHash<Dna>)

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

§

AgentValidationPkg(Option<Arc<SerializedBytes>>)

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