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
entry_type: ET
The app defined entry type with the deserialized
Entry
data.
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
entry_type: ET
The app defined entry type with the deserialized
Entry
data from the new entry.
Note the new entry type is always the same as the
original entry type however the data may have changed.
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.
tag: LinkTag
The link’s tag.
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
sourceimpl<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
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.