Enum hdk::prelude::OpActivity

pub enum OpActivity<UnitType, LT> {
Show 18 variants CreateEntry { entry_hash: HoloHash<Entry>, entry_type: Option<UnitType>, }, CreatePrivateEntry { entry_hash: HoloHash<Entry>, entry_type: Option<UnitType>, }, 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: Option<UnitType>, }, UpdatePrivateEntry { entry_hash: HoloHash<Entry>, original_action_hash: HoloHash<Action>, original_entry_hash: HoloHash<Entry>, entry_type: Option<UnitType>, }, 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: Option<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::RegisterAgentActivity operation.

Variants

CreateEntry

Fields

entry_hash: HoloHash<Entry>

The hash of the Entry being created.

entry_type: Option<UnitType>

The unit version of the app defined entry type. If this is None then the entry type is defined in a different zome.

This operation registers the Action for an app defined entry type to the author’s chain.

CreatePrivateEntry

Fields

entry_hash: HoloHash<Entry>

The hash of the Entry being created.

entry_type: Option<UnitType>

The unit version of the app defined entry type. If this is None then the entry type is defined in a different zome.

This operation registers the Action for an app defined private entry type to the author’s chain.

CreateAgent(HoloHash<Agent>)

This operation registers the Action for an AgentPubKey to the author’s chain.

CreateCapClaim(HoloHash<Entry>)

This operation registers the Action for a Capability Claim to the author’s chain.

CreateCapGrant(HoloHash<Entry>)

This operation registers the Action for a Capability Grant to the author’s chain.

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: Option<UnitType>

The unit version of the app defined entry type. If this is None then the entry type is defined in a different zome.

This operation registers the Action for an updated app defined entry type to the author’s chain.

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: Option<UnitType>

The unit version of the app defined private entry type. If this is None then the entry type is defined in a different zome.

This operation registers the Action for an updated app defined private entry type to the author’s chain.

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 registers the Action for an updated AgentPubKey to the author’s chain.

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 registers the Action for an updated Capability Claim to the author’s chain.

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 registers the Action for an updated Capability Grant to the author’s chain.

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 registers the Action for a deleted app defined entry type to the author’s chain.

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: Option<LT>

The app defined link type of this link. If this is None then the link type is defined in a different zome.

This operation registers the Action for a new link to the author’s chain.

This operation registers the Action for a deleted link to the author’s chain and contains the original link’s Action hash.

Dna(HoloHash<Dna>)

This operation registers the Action for an Action::Dna to the author’s chain.

OpenChain(HoloHash<Dna>)

This operation registers the Action for an Action::OpenChain to the author’s chain and contains the previous chains’s DnaHash.

CloseChain(HoloHash<Dna>)

This operation registers the Action for an Action::CloseChain to the author’s chain and contains the new chains’s DnaHash.

AgentValidationPkg(Option<Arc<SerializedBytes>>)

This operation registers the Action for an Action::AgentValidationPkg to the author’s chain and contains the membrane proof if there is one.

InitZomesComplete

This operation registers the Action for an Action::InitZomesComplete to the author’s chain.

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
Converts to this type from the input type.
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