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
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(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
This operation registers the Action
for an
updated app defined entry type to the author’s chain.
UpdatePrivateEntry
Fields
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
.
This operation registers the Action
for an
updated AgentPubKey
to the author’s chain.
UpdateCapClaim
Fields
This operation registers the Action
for an
updated Capability Claim to the author’s chain.
UpdateCapGrant
Fields
This operation registers the Action
for an
updated Capability Grant to the author’s chain.
DeleteEntry
Fields
This operation registers the Action
for a
deleted app defined entry type to the author’s chain.
CreateLink
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.
This operation registers the Action
for a
new link to the author’s chain.
DeleteLink(HoloHash<Action>)
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
impl<UnitType, LT> Clone for OpActivity<UnitType, LT>where
UnitType: Clone,
LT: Clone,
impl<UnitType, LT> Clone for OpActivity<UnitType, LT>where
UnitType: Clone,
LT: Clone,
fn clone(&self) -> OpActivity<UnitType, LT>
fn clone(&self) -> OpActivity<UnitType, LT>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreimpl<UnitType, LT> Debug for OpActivity<UnitType, LT>where
UnitType: Debug,
LT: Debug,
impl<UnitType, LT> Debug for OpActivity<UnitType, LT>where
UnitType: Debug,
LT: Debug,
sourceimpl<Unit, LT> From<ActivityEntry<Unit>> for OpActivity<Unit, LT>
impl<Unit, LT> From<ActivityEntry<Unit>> for OpActivity<Unit, LT>
sourcefn from(e: ActivityEntry<Unit>) -> OpActivity<Unit, LT>
fn from(e: ActivityEntry<Unit>) -> OpActivity<Unit, LT>
impl<UnitType, LT> PartialEq<OpActivity<UnitType, LT>> for OpActivity<UnitType, LT>where
UnitType: PartialEq<UnitType>,
LT: PartialEq<LT>,
impl<UnitType, LT> PartialEq<OpActivity<UnitType, LT>> for OpActivity<UnitType, LT>where
UnitType: PartialEq<UnitType>,
LT: PartialEq<LT>,
fn eq(&self, other: &OpActivity<UnitType, LT>) -> bool
fn eq(&self, other: &OpActivity<UnitType, LT>) -> bool
impl<UnitType, LT> Eq for OpActivity<UnitType, LT>where
UnitType: Eq,
LT: Eq,
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
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.