Enum holochain_zome_types::op::OpRecord
source · pub enum OpRecord<ET, LT>where
ET: UnitEnum,{
Show 18 variants
CreateEntry {
entry_hash: HoloHash<Entry>,
entry_type: ET,
},
CreatePrivateEntry {
entry_hash: HoloHash<Entry>,
entry_type: <ET as UnitEnum>::Unit,
},
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: ET,
},
UpdatePrivateEntry {
entry_hash: HoloHash<Entry>,
original_action_hash: HoloHash<Action>,
original_entry_hash: HoloHash<Entry>,
entry_type: <ET as UnitEnum>::Unit,
},
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: 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::StoreRecord
operation.
Variants§
CreateEntry
Fields
This operation stores the Record
for an
app defined entry type.
CreatePrivateEntry
Fields
This operation stores the Record
for an
app defined private entry type.
CreateAgent(HoloHash<Agent>)
This operation stores the Record
for an
AgentPubKey
that has been created.
CreateCapClaim(HoloHash<Entry>)
This operation stores the Record
for a
Capability Claim that has been created.
CreateCapGrant(HoloHash<Entry>)
This operation stores the Record
for a
Capability Grant that has been created.
UpdateEntry
Fields
This operation stores the Record
for an
updated app defined entry type.
UpdatePrivateEntry
Fields
This operation stores the Record
for an
updated app defined private entry type.
UpdateAgent
Fields
new_key: HoloHash<Agent>
The new AgentPubKey
.
original_key: HoloHash<Agent>
The original AgentPubKey
.
This operation stores the Record
for an
updated AgentPubKey
.
UpdateCapClaim
Fields
This operation stores the Record
for an
updated Capability Claim.
UpdateCapGrant
Fields
This operation stores the Record
for an
updated Capability Grant.
DeleteEntry
Fields
This operation stores the Record
for a
deleted app defined entry type.
CreateLink
Fields
base_address: HoloHash<AnyLinkable>
The base address of the link.
target_address: HoloHash<AnyLinkable>
The target address of the link.
link_type: LT
The app defined link type of this link.
This operation stores the Record
for a
new link.
DeleteLink(HoloHash<Action>)
Dna(HoloHash<Dna>)
This operation stores the Record
for an
Action::Dna
.
OpenChain(HoloHash<Dna>)
This operation stores the Record
for an
Action::OpenChain
and contains the previous
chains’s DnaHash
.
CloseChain(HoloHash<Dna>)
This operation stores the Record
for an
Action::CloseChain
and contains the new
chains’s DnaHash
.
AgentValidationPkg(Option<Arc<SerializedBytes>>)
This operation stores the Record
for an
Action::AgentValidationPkg
and contains
the membrane proof if there is one.
InitZomesComplete
This operation stores the Record
for an
Action::InitZomesComplete
.
Trait Implementations§
source§impl<ET, LT> PartialEq<OpRecord<ET, LT>> for OpRecord<ET, LT>where
ET: PartialEq<ET> + UnitEnum,
LT: PartialEq<LT>,
impl<ET, LT> PartialEq<OpRecord<ET, LT>> for OpRecord<ET, LT>where
ET: PartialEq<ET> + UnitEnum,
LT: PartialEq<LT>,
impl<ET, LT> Eq for OpRecord<ET, LT>where
ET: Eq + UnitEnum,
LT: Eq,
impl<ET, LT> StructuralEq for OpRecord<ET, LT>where
ET: UnitEnum,
impl<ET, LT> StructuralPartialEq for OpRecord<ET, LT>where
ET: UnitEnum,
Auto Trait Implementations§
impl<ET, LT> RefUnwindSafe for OpRecord<ET, LT>where
ET: RefUnwindSafe,
LT: RefUnwindSafe,
<ET as UnitEnum>::Unit: RefUnwindSafe,
impl<ET, LT> Send for OpRecord<ET, LT>where
ET: Send,
LT: Send,
<ET as UnitEnum>::Unit: Send,
impl<ET, LT> Sync for OpRecord<ET, LT>where
ET: Sync,
LT: Sync,
<ET as UnitEnum>::Unit: Sync,
impl<ET, LT> Unpin for OpRecord<ET, LT>where
ET: Unpin,
LT: Unpin,
<ET as UnitEnum>::Unit: Unpin,
impl<ET, LT> UnwindSafe for OpRecord<ET, LT>where
ET: UnwindSafe,
LT: UnwindSafe,
<ET as UnitEnum>::Unit: 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
§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.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.