pub enum OpUpdate<ET>where
ET: UnitEnum,{
Entry {
original_action: EntryCreationAction,
original_app_entry: ET,
app_entry: ET,
action: Update<EntryRateWeight>,
},
PrivateEntry {
original_action_hash: HoloHash<Action>,
original_app_entry_type: <ET as UnitEnum>::Unit,
app_entry_type: <ET as UnitEnum>::Unit,
action: Update<EntryRateWeight>,
},
Agent {
new_key: HoloHash<Agent>,
original_key: HoloHash<Agent>,
original_action_hash: HoloHash<Action>,
action: Update<EntryRateWeight>,
},
CapClaim {
original_action_hash: HoloHash<Action>,
action: Update<EntryRateWeight>,
},
CapGrant {
original_action_hash: HoloHash<Action>,
action: Update<EntryRateWeight>,
},
}
Expand description
Data specific to the Op::RegisterUpdate
operation.
Variants§
Entry
Fields
original_action: EntryCreationAction
original_app_entry: ET
The app defined entry type with the deserialized
Entry
data of the original entry.
action: Update<EntryRateWeight>
The action that updates this entry
This operation registers an update from
the original Entry
.
PrivateEntry
Fields
original_app_entry_type: <ET as UnitEnum>::Unit
The unit version of the app defined entry type for the original entry.
app_entry_type: <ET as UnitEnum>::Unit
The unit version of the app defined entry type for the new entry.
action: Update<EntryRateWeight>
The action that updates this entry
This operation registers an update from
the original private Entry
.
Agent
Fields
new_key: HoloHash<Agent>
The new AgentPubKey
.
original_key: HoloHash<Agent>
The original AgentPubKey
.
action: Update<EntryRateWeight>
The Update
action that updates the agent’s key
This operation registers an update from
the original AgentPubKey
.
CapClaim
Fields
action: Update<EntryRateWeight>
The Update
action that updates the crate::CapClaim
This operation registers an update from a Capability Claim.
CapGrant
Fields
action: Update<EntryRateWeight>
The Update
action that updates the crate::CapGrant
This operation registers an update from a Capability Grant.
Trait Implementations§
§impl<ET> PartialEq<OpUpdate<ET>> for OpUpdate<ET>where
ET: PartialEq<ET> + UnitEnum,
impl<ET> PartialEq<OpUpdate<ET>> for OpUpdate<ET>where
ET: PartialEq<ET> + UnitEnum,
impl<ET> Eq for OpUpdate<ET>where
ET: Eq + 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§
§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.