pub enum OpEntry<ET>where
ET: UnitEnum,{
CreateEntry {
app_entry: ET,
action: Create,
},
CreateAgent {
agent: HoloHash<Agent>,
action: Create,
},
UpdateEntry {
original_action_hash: HoloHash<Action>,
original_entry_hash: HoloHash<Entry>,
app_entry: ET,
action: Update,
},
UpdateAgent {
new_key: HoloHash<Agent>,
original_key: HoloHash<Agent>,
original_action_hash: HoloHash<Action>,
action: Update,
},
CreateCapGrant {
entry: ZomeCallCapGrant,
action: Create,
},
CreateCapClaim {
entry: CapClaim,
action: Create,
},
UpdateCapGrant {
original_action_hash: HoloHash<Action>,
original_entry_hash: HoloHash<Entry>,
action: Update,
entry: ZomeCallCapGrant,
},
UpdateCapClaim {
original_action_hash: HoloHash<Action>,
original_entry_hash: HoloHash<Entry>,
action: Update,
entry: CapClaim,
},
}Expand description
Data specific to the [Op::StoreEntry] operation.
Variants§
CreateEntry
This operation stores the [Entry] for an
app defined entry type.
Fields
app_entry: ETThe app defined entry with the deserialized
[Entry] data.
CreateAgent
This operation stores the [Entry] for an
AgentPubKey.
Fields
UpdateEntry
This operation stores the [Entry] for the
newly created entry in an update.
Fields
app_entry: ETThe app defined entry with the deserialized
[Entry] data of the new entry.
UpdateAgent
This operation stores the [Entry] for an
updated AgentPubKey.
Fields
new_key: HoloHash<Agent>The new AgentPubKey.
original_key: HoloHash<Agent>The original AgentPubKey.
CreateCapGrant
This operation stores the [Entry] for a CapGrant
Fields
entry: ZomeCallCapGrantThe cap grant entry data.
CreateCapClaim
This operation stores the [Entry] for a CapClaim
Fields
UpdateCapGrant
This operation updates the [Entry] for a CapGrant
Fields
original_action_hash: HoloHash<Action>The hash of the [Action] that created the original [crate::CapGrant]
entry: ZomeCallCapGrantThe new entry to store
UpdateCapClaim
This operation updates the [Entry] for a CapClaim
Trait Implementations§
impl<ET> Eq for OpEntry<ET>
impl<ET> StructuralPartialEq for OpEntry<ET>where
ET: UnitEnum,
Auto Trait Implementations§
impl<ET> Freeze for OpEntry<ET>where
ET: Freeze,
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<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.