pub enum OpRecord<ET: UnitEnum, LT> {
Show 18 variants
CreateEntry {
app_entry: ET,
action: Create,
},
CreatePrivateEntry {
app_entry_type: <ET as UnitEnum>::Unit,
action: Create,
},
CreateAgent {
agent: AgentPubKey,
action: Create,
},
CreateCapClaim {
action: Create,
},
CreateCapGrant {
action: Create,
},
UpdateEntry {
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
app_entry: ET,
action: Update,
},
UpdatePrivateEntry {
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
app_entry_type: <ET as UnitEnum>::Unit,
action: Update,
},
UpdateAgent {
original_key: AgentPubKey,
new_key: AgentPubKey,
original_action_hash: ActionHash,
action: Update,
},
UpdateCapClaim {
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
action: Update,
},
UpdateCapGrant {
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
action: Update,
},
DeleteEntry {
original_action_hash: ActionHash,
original_entry_hash: EntryHash,
action: Delete,
},
CreateLink {
base_address: AnyLinkableHash,
target_address: AnyLinkableHash,
tag: LinkTag,
link_type: LT,
action: CreateLink,
},
DeleteLink {
original_action_hash: ActionHash,
base_address: AnyLinkableHash,
action: DeleteLink,
},
Dna {
dna_hash: DnaHash,
action: Dna,
},
OpenChain {
previous_dna_hash: DnaHash,
action: OpenChain,
},
CloseChain {
new_dna_hash: DnaHash,
action: CloseChain,
},
AgentValidationPkg {
membrane_proof: Option<MembraneProof>,
action: AgentValidationPkg,
},
InitZomesComplete {
action: InitZomesComplete,
},
}
Expand description
Data specific to the [Op::StoreRecord
] operation.
Variants§
CreateEntry
Fields
app_entry: ET
The app defined entry type with the deserialized
[Entry
] data.
This operation stores the [Record
] for an
app defined entry type.
CreatePrivateEntry
Fields
This operation stores the [Record
] for an
app defined private entry type.
CreateAgent
Fields
agent: AgentPubKey
The agent that was created
This operation stores the [Record
] for an
AgentPubKey
that has been created.
CreateCapClaim
This operation stores the [Record
] for a
Capability Claim that has been created.
CreateCapGrant
This operation stores the [Record
] for a
Capability Grant that has been created.
UpdateEntry
Fields
original_action_hash: ActionHash
The hash of the [Action
] that created the original entry
app_entry: ET
The app defined entry type with the deserialized
[Entry
] data from the new entry.
Note the new entry type is always the same as the
original entry type however the data may have changed.
This operation stores the [Record
] for an
updated app defined entry type.
UpdatePrivateEntry
Fields
original_action_hash: ActionHash
The hash of the [Action
] that created the original entry
This operation stores the [Record
] for an
updated app defined private entry type.
UpdateAgent
Fields
original_key: AgentPubKey
The original AgentPubKey
.
new_key: AgentPubKey
The new AgentPubKey
.
original_action_hash: ActionHash
The hash of the [Action
] that created the original key
This operation stores the [Record
] for an
updated AgentPubKey
.
UpdateCapClaim
Fields
original_action_hash: ActionHash
The hash of the [Action
] that created the original [crate::CapClaim
]
This operation stores the [Record
] for an
updated Capability Claim.
UpdateCapGrant
Fields
original_action_hash: ActionHash
The hash of the [Action
] that created the original [crate::CapGrant
]
This operation stores the [Record
] for an
updated Capability Grant.
DeleteEntry
Fields
original_action_hash: ActionHash
The hash of the [Action
] that created the original entry
This operation stores the [Record
] for a
deleted app defined entry type.
CreateLink
Fields
base_address: AnyLinkableHash
The base address of the link.
target_address: AnyLinkableHash
The target address of the link.
link_type: LT
The app defined link type of this link.
action: CreateLink
The CreateLink
action that creates this link
This operation stores the [Record
] for a
new link.
DeleteLink
Fields
original_action_hash: ActionHash
The deleted links CreateLink
[Action
].
base_address: AnyLinkableHash
The base address where this link is stored. This is the base address of the link that is being deleted.
action: DeleteLink
The DeleteLink
action that deletes the link
This operation stores the [Record
] for a
deleted link and contains the original link’s
[Action
] hash.
Dna
This operation stores the [Record
] for an
[Action::Dna
].
OpenChain
Fields
This operation stores the [Record
] for an
[Action::OpenChain
] and contains the previous
chains’s DnaHash
.
CloseChain
Fields
action: CloseChain
The CloseChain
action
This operation stores the [Record
] for an
[Action::CloseChain
] and contains the new
chains’s DnaHash
.
AgentValidationPkg
Fields
membrane_proof: Option<MembraneProof>
The membrane proof proving that the agent is allowed to participate in this DNA
action: AgentValidationPkg
The AgentValidationPkg
action
This operation stores the [Record
] for an
[Action::AgentValidationPkg
] and contains
the membrane proof if there is one.
InitZomesComplete
Fields
action: InitZomesComplete
The InitZomesComplete
action
This operation stores the [Record
] for an
[Action::InitZomesComplete
].
Trait Implementations§
source§impl<ET: PartialEq + UnitEnum, LT: PartialEq> PartialEq<OpRecord<ET, LT>> for OpRecord<ET, LT>
impl<ET: PartialEq + UnitEnum, LT: PartialEq> PartialEq<OpRecord<ET, LT>> for OpRecord<ET, LT>
impl<ET: Eq + UnitEnum, LT: Eq> Eq for OpRecord<ET, LT>
impl<ET: UnitEnum, LT> StructuralEq for OpRecord<ET, LT>
impl<ET: UnitEnum, LT> StructuralPartialEq for OpRecord<ET, LT>
Auto Trait Implementations§
impl<ET, LT> RefUnwindSafe for OpRecord<ET, LT>where ET: RefUnwindSafe, LT: RefUnwindSafe, <ET as UnitEnum>::Unit: RefUnwindSafe,
impl<ET, LT> Send for OpRecord<ET, LT>where ET: Send, LT: Send, <ET as UnitEnum>::Unit: Send,
impl<ET, LT> Sync for OpRecord<ET, LT>where ET: Sync, LT: Sync, <ET as UnitEnum>::Unit: Sync,
impl<ET, LT> Unpin for OpRecord<ET, LT>where ET: Unpin, LT: Unpin, <ET as UnitEnum>::Unit: Unpin,
impl<ET, LT> UnwindSafe for OpRecord<ET, LT>where ET: UnwindSafe, LT: 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.