Enum holochain_integrity_types::op::OpEntry
source · pub enum OpEntry<ET>where
ET: UnitEnum,{
CreateEntry {
entry_hash: EntryHash,
entry_type: ET,
},
CreateAgent(AgentPubKey),
UpdateEntry {
entry_hash: EntryHash,
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
entry_type: ET,
},
UpdateAgent {
new_key: AgentPubKey,
original_key: AgentPubKey,
original_action_hash: ActionHash,
},
}
Expand description
Data specific to the Op::StoreEntry
operation.
Variants§
CreateEntry
Fields
This operation stores the Entry
for an
app defined entry type.
CreateAgent(AgentPubKey)
This operation stores the Entry
for an
AgentPubKey
.
UpdateEntry
Fields
§
original_action_hash: ActionHash
The hash of the original Action
.
This operation stores the Entry
for the
newly created entry in an update.
UpdateAgent
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 stores the Entry
for an
updated AgentPubKey
.
Trait Implementations§
source§impl<ET: PartialEq> PartialEq<OpEntry<ET>> for OpEntry<ET>where
ET: UnitEnum,
impl<ET: PartialEq> PartialEq<OpEntry<ET>> for OpEntry<ET>where
ET: UnitEnum,
impl<ET: Eq> Eq for OpEntry<ET>where
ET: UnitEnum,
impl<ET> StructuralEq for OpEntry<ET>where
ET: UnitEnum,
impl<ET> StructuralPartialEq for OpEntry<ET>where
ET: UnitEnum,
Auto Trait Implementations§
impl<ET> RefUnwindSafe for OpEntry<ET>where
ET: RefUnwindSafe,
impl<ET> Send for OpEntry<ET>where
ET: Send,
impl<ET> Sync for OpEntry<ET>where
ET: Sync,
impl<ET> Unpin for OpEntry<ET>where
ET: Unpin,
impl<ET> UnwindSafe for OpEntry<ET>where
ET: UnwindSafe,
Blanket Implementations§
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
Compare self to
key
and return true
if they are equal.