Enum hdk::prelude::OpActivity

pub enum OpActivity<UnitType, LT> {
Show 18 variants CreateEntry { app_entry_type: Option<UnitType>, action: Create<EntryRateWeight>, }, CreatePrivateEntry { app_entry_type: Option<UnitType>, 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_type: Option<UnitType>, action: Update<EntryRateWeight>, }, UpdatePrivateEntry { original_action_hash: HoloHash<Action>, original_entry_hash: HoloHash<Entry>, app_entry_type: Option<UnitType>, action: Update<EntryRateWeight>, }, UpdateAgent { new_key: HoloHash<Agent>, original_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: Option<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::RegisterAgentActivity operation.

Variants§

§

CreateEntry

Fields

§app_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.

§action: Create<EntryRateWeight>

The Create action that creates the entry

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

§

CreatePrivateEntry

Fields

§app_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.

§action: Create<EntryRateWeight>

The Create action that creates the entry

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

§

CreateAgent

Fields

§agent: HoloHash<Agent>

The agent that was created

§action: Create<EntryRateWeight>

The Create action that creates the entry

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

§

CreateCapClaim

Fields

§action: Create<EntryRateWeight>

The Create action that creates the crate::CapClaim

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

§

CreateCapGrant

Fields

§action: Create<EntryRateWeight>

The Create action that creates the crate::CapGrant

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

§

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_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.

§action: Update<EntryRateWeight>

The Update action that updates the entry

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

§

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

§action: Update<EntryRateWeight>

The Update action that updates the entry

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 Action that created the original entry

§action: Update<EntryRateWeight>

The Update action that updates the agent’s key

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

§

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

§

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

§

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 action that deletes the original 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.

§action: CreateLink<RateWeight>

The action that creates this link

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

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 registers the Action for a deleted link to the author’s chain 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 registers the Action for an Action::Dna to the author’s chain.

§

OpenChain

Fields

§previous_dna_hash: HoloHash<Dna>

Hash of the prevous DNA that we are migrating from

§action: OpenChain

The OpenChain action

This operation registers the Action for an Action::OpenChain to the author’s chain 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 registers the Action for an Action::CloseChain to the author’s chain 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 registers the Action for an Action::AgentValidationPkg to the author’s chain and contains the membrane proof if there is one.

§

InitZomesComplete

Fields

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
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