Enum holochain_integrity_types::op::OpUpdate
source · [−]pub enum OpUpdate<ET> where
ET: UnitEnum, {
Entry {
entry_hash: EntryHash,
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
original_entry_type: ET,
new_entry_type: ET,
},
PrivateEntry {
entry_hash: EntryHash,
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
original_entry_type: <ET as UnitEnum>::Unit,
new_entry_type: <ET as UnitEnum>::Unit,
},
Agent {
new_key: AgentPubKey,
original_key: AgentPubKey,
original_action_hash: ActionHash,
},
CapClaim {
entry_hash: EntryHash,
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
},
CapGrant {
entry_hash: EntryHash,
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
},
}
Expand description
Data specific to the Op::RegisterUpdate
operation.
Variants
Entry
Fields
original_action_hash: ActionHash
The hash of the original Action
.
original_entry_type: ET
The app defined entry type with the deserialized
Entry
data of the original entry.
new_entry_type: ET
The app defined entry type with the deserialized
Entry
data of the new entry.
This operation registers an update from
the original Entry
.
PrivateEntry
Fields
original_action_hash: ActionHash
The hash of the original Action
.
This operation registers an update from
the original private Entry
.
Agent
Fields
new_key: AgentPubKey
The new AgentPubKey
.
original_key: AgentPubKey
The original AgentPubKey
.
original_action_hash: ActionHash
The hash of the original keys Action
.
This operation registers an update from
the original AgentPubKey
.
CapClaim
Fields
entry_hash: EntryHash
The hash of the newly created Capability Claim.
original_action_hash: ActionHash
The hash of the original Capability Claim’s Action
.
original_entry_hash: EntryHash
The hash of the original Capability Claim.
This operation registers an update from a Capability Claim.
CapGrant
Fields
entry_hash: EntryHash
The hash of the newly created Capability Grant.
original_action_hash: ActionHash
The hash of the original Capability Grant’s Action
.
original_entry_hash: EntryHash
The hash of the original Capability Grant.
This operation registers an update from a Capability Grant.
Trait Implementations
impl<ET: Eq> Eq for OpUpdate<ET> where
ET: UnitEnum,
impl<ET> StructuralEq for OpUpdate<ET> where
ET: UnitEnum,
impl<ET> StructuralPartialEq for OpUpdate<ET> where
ET: UnitEnum,
Auto Trait Implementations
impl<ET> RefUnwindSafe for OpUpdate<ET> where
ET: RefUnwindSafe,
<ET as UnitEnum>::Unit: RefUnwindSafe,
impl<ET> Send for OpUpdate<ET> where
ET: Send,
<ET as UnitEnum>::Unit: Send,
impl<ET> Sync for OpUpdate<ET> where
ET: Sync,
<ET as UnitEnum>::Unit: Sync,
impl<ET> Unpin for OpUpdate<ET> where
ET: Unpin,
<ET as UnitEnum>::Unit: Unpin,
impl<ET> UnwindSafe for OpUpdate<ET> where
ET: UnwindSafe,
<ET as UnitEnum>::Unit: UnwindSafe,
Blanket Implementations
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
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.