Enum holochain_types::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>
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
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
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 = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Mutably borrows from an owned value. Read more
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>
Deserializes using the given deserializer
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
Compare self to 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>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn 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>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if 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
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more