pub enum OpEntry<ET>where
ET: UnitEnum,{
CreateEntry {
app_entry: ET,
action: Create,
},
CreateAgent {
agent: AgentPubKey,
action: Create,
},
UpdateEntry {
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
app_entry: ET,
action: Update,
},
UpdateAgent {
new_key: AgentPubKey,
original_key: AgentPubKey,
original_action_hash: ActionHash,
action: Update,
},
CreateCapGrant {
entry: CapGrantEntry,
action: Create,
},
CreateCapClaim {
entry: CapClaimEntry,
action: Create,
},
UpdateCapGrant {
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
action: Update,
entry: CapGrantEntry,
},
UpdateCapClaim {
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
action: Update,
entry: CapClaimEntry,
},
}
Expand description
Data specific to the [Op::StoreEntry
] operation.
Variants§
CreateEntry
Fields
app_entry: ET
The app defined entry with the deserialized
[Entry
] data.
This operation stores the [Entry
] for an
app defined entry type.
CreateAgent
Fields
agent: AgentPubKey
The agent that was created
This operation stores the [Entry
] for an
AgentPubKey
.
UpdateEntry
Fields
original_action_hash: ActionHash
The hash of the [Action
] that created the original entry
app_entry: ET
The app defined entry with the deserialized
[Entry
] data of the new entry.
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
.
CreateCapGrant
Fields
entry: CapGrantEntry
The cap grant entry data.
This operation stores the [Entry
] for a CapGrant
CreateCapClaim
Fields
entry: CapClaimEntry
The cap claim entry data.
This operation stores the [Entry
] for a CapClaim
UpdateCapGrant
Fields
original_action_hash: ActionHash
The hash of the [Action
] that created the original [crate::CapGrant
]
entry: CapGrantEntry
The new entry to store
This operation updates the [Entry
] for a CapGrant
UpdateCapClaim
Fields
original_action_hash: ActionHash
The hash of the [Action
] that created the original [crate::CapClaim
]
entry: CapClaimEntry
The new entry to store
This operation updates the [Entry
] for a CapClaim
Trait Implementations§
source§impl<ET> PartialEq<OpEntry<ET>> for OpEntry<ET>where
ET: UnitEnum + PartialEq,
impl<ET> PartialEq<OpEntry<ET>> for OpEntry<ET>where ET: UnitEnum + PartialEq,
impl<ET> Eq for OpEntry<ET>where ET: UnitEnum + Eq,
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§
§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.