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
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
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
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
.
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
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.
CreateLink
Fields
base_address: HoloHash<AnyLinkable>
The base address of the link.
target_address: HoloHash<AnyLinkable>
The target address of the link.
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.
DeleteLink
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
This operation registers the Action
for an
Action::Dna
to the author’s chain.
OpenChain
Fields
This operation registers the Action
for an
Action::OpenChain
to the author’s chain
and contains the previous chains’s DnaHash
.
CloseChain
Fields
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
action: AgentValidationPkg
The AgentValidationPkg
action
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
action: InitZomesComplete
The InitZomesComplete
action
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 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl<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,
§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
self
and other
values to be equal, and is used
by ==
.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> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
§fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
§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
§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>
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.