Enum holochain_integrity_types::op::OpActivity
source · [−]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
This operation registers the Action
for an
app defined entry type to the author’s chain.
CreatePrivateEntry
Fields
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
original_action_hash: ActionHash
The hash of the original Action
.
This operation registers the Action
for an
updated app defined entry type to the author’s chain.
UpdatePrivateEntry
Fields
original_action_hash: ActionHash
The hash of the original Action
.
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.
CreateLink
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.
This operation registers the Action
for a
new link to the author’s chain.
DeleteLink(ActionHash)
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
sourceimpl<UnitType: Clone, LT: Clone> Clone for OpActivity<UnitType, LT>
impl<UnitType: Clone, LT: Clone> Clone for OpActivity<UnitType, LT>
sourcefn clone(&self) -> OpActivity<UnitType, LT>
fn clone(&self) -> OpActivity<UnitType, LT>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<UnitType: Debug, LT: Debug> Debug for OpActivity<UnitType, LT>
impl<UnitType: Debug, LT: Debug> Debug for OpActivity<UnitType, LT>
sourceimpl<UnitType: PartialEq, LT: PartialEq> PartialEq<OpActivity<UnitType, LT>> for OpActivity<UnitType, LT>
impl<UnitType: PartialEq, LT: PartialEq> PartialEq<OpActivity<UnitType, LT>> for OpActivity<UnitType, LT>
sourcefn eq(&self, other: &OpActivity<UnitType, LT>) -> bool
fn eq(&self, other: &OpActivity<UnitType, LT>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OpActivity<UnitType, LT>) -> bool
fn ne(&self, other: &OpActivity<UnitType, LT>) -> bool
This method tests for !=
.
impl<UnitType: Eq, LT: Eq> Eq for OpActivity<UnitType, LT>
impl<UnitType, LT> StructuralEq for OpActivity<UnitType, LT>
impl<UnitType, LT> StructuralPartialEq for OpActivity<UnitType, LT>
Auto Trait Implementations
impl<UnitType, LT> RefUnwindSafe for OpActivity<UnitType, LT> where
LT: RefUnwindSafe,
UnitType: RefUnwindSafe,
impl<UnitType, LT> Send for OpActivity<UnitType, LT> where
LT: Send,
UnitType: Send,
impl<UnitType, LT> Sync for OpActivity<UnitType, LT> where
LT: Sync,
UnitType: Sync,
impl<UnitType, LT> Unpin for OpActivity<UnitType, LT> where
LT: Unpin,
UnitType: Unpin,
impl<UnitType, LT> UnwindSafe for OpActivity<UnitType, LT> where
LT: UnwindSafe,
UnitType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.