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>
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,
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>
Converts to this type from the input type.
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
fn ne(&self, other: &OpActivity<UnitType, LT>) -> bool
fn ne(&self, other: &OpActivity<UnitType, LT>) -> bool
This method tests for !=
.
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 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
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
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 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.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more