pub enum OpActivity<UnitType, LT> {
Show 18 variants CreateEntry { entry_hash: EntryHash, entry_type: Option<UnitType>, }, CreatePrivateEntry { entry_hash: EntryHash, entry_type: Option<UnitType>, }, CreateAgent(AgentPubKey), CreateCapClaim(EntryHash), CreateCapGrant(EntryHash), UpdateEntry { entry_hash: EntryHash, original_action_hash: ActionHash, original_entry_hash: EntryHash, entry_type: Option<UnitType>, }, UpdatePrivateEntry { entry_hash: EntryHash, original_action_hash: ActionHash, original_entry_hash: EntryHash, entry_type: Option<UnitType>, }, 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: Option<LT>, }, DeleteLink(ActionHash), Dna(DnaHash), OpenChain(DnaHash), CloseChain(DnaHash), AgentValidationPkg(Option<MembraneProof>), InitZomesComplete,
}
Expand description

Data specific to the Op::RegisterAgentActivity operation.

Variants

CreateEntry

Fields

entry_hash: EntryHash

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

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(AgentPubKey)

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

CreateCapClaim(EntryHash)

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

CreateCapGrant(EntryHash)

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

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

The new AgentPubKey.

original_key: AgentPubKey

The original AgentPubKey.

original_action_hash: ActionHash

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

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

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

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: 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(DnaHash)

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

OpenChain(DnaHash)

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

CloseChain(DnaHash)

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

AgentValidationPkg(Option<MembraneProof>)

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

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.