pub enum FlatOp<ET, LT>where
ET: UnitEnum,{
StoreRecord(OpRecord<ET, LT>),
StoreEntry(OpEntry<ET>),
RegisterAgentActivity(OpActivity<<ET as UnitEnum>::Unit, LT>),
RegisterCreateLink {
base_address: AnyLinkableHash,
target_address: AnyLinkableHash,
tag: LinkTag,
link_type: LT,
action: CreateLink,
},
RegisterDeleteLink {
original_action: CreateLink,
base_address: AnyLinkableHash,
target_address: AnyLinkableHash,
tag: LinkTag,
link_type: LT,
action: DeleteLink,
},
RegisterUpdate(OpUpdate<ET>),
RegisterDelete(OpDelete),
}Expand description
A convenience type for validation [Op]s.
Variants§
StoreRecord(OpRecord<ET, LT>)
The [Op::StoreRecord] which is validated by the authority
for the ActionHash of this record.
This operation stores a [Record] on the DHT and is
returned when the authority receives a request
on the ActionHash.
StoreEntry(OpEntry<ET>)
The [Op::StoreEntry] which is validated by the authority
for the EntryHash of this entry.
This operation stores an [Entry] on the DHT and is
returned when the authority receives a request
on the EntryHash.
RegisterAgentActivity(OpActivity<<ET as UnitEnum>::Unit, LT>)
The [Op::RegisterAgentActivity] which is validated by
the authority for the AgentPubKey for the author of this [Action].
This operation registers an [Action] to an agent’s chain
on the DHT and is returned when the authority receives a request
on the AgentPubKey for chain data.
Note that [Op::RegisterAgentActivity] is the only operation
that is validated by all zomes regardless of entry or link types.
RegisterCreateLink
The [Op::RegisterCreateLink] which is validated by
the authority for the AnyLinkableHash in the base address
of this link.
This operation register’s a link to the base address
on the DHT and is returned when the authority receives a request
on the base AnyLinkableHash for links.
Fields
base_address: AnyLinkableHashThe base address where this link is stored.
target_address: AnyLinkableHashThe target address of this link.
link_type: LTThe app defined link type of this link.
action: CreateLinkThe CreateLink action that creates the link
RegisterDeleteLink
The [Op::RegisterDeleteLink] which is validated by
the authority for the AnyLinkableHash in the base address
of the link that is being deleted.
This operation registers a deletion of a link to the base address
on the DHT and is returned when the authority receives a request
on the base AnyLinkableHash for the link that is being deleted.
Fields
original_action: CreateLinkThe original CreateLink [Action] that created the link.
base_address: AnyLinkableHashThe base address where this link is stored. This is the base address of the link that is being deleted.
target_address: AnyLinkableHashThe target address of the link being deleted.
link_type: LTThe app defined link type of the deleted link.
action: DeleteLinkThe DeleteLink action that deletes the link
RegisterUpdate(OpUpdate<ET>)
The [Op::RegisterUpdate] which is validated by
the authority for the ActionHash of the original entry
and the authority for the EntryHash of the original entry.
This operation registers an update from the original entry on
the DHT and is returned when the authority receives a request
for the ActionHash of the original entry [Action] or the
EntryHash of the original entry.
RegisterDelete(OpDelete)
The [Op::RegisterDelete] which is validated by
the authority for the ActionHash of the deleted entry
and the authority for the EntryHash of the deleted entry.
This operation registers a deletion to the original entry on
the DHT and is returned when the authority receives a request
for the ActionHash of the deleted entry [Action] or the
EntryHash of the deleted entry.
Trait Implementations§
source§impl<ET, LT: PartialEq> PartialEq for FlatOp<ET, LT>
impl<ET, LT: PartialEq> PartialEq for FlatOp<ET, LT>
impl<ET, LT: Eq> Eq for FlatOp<ET, LT>
impl<ET, LT> StructuralPartialEq for FlatOp<ET, LT>where
ET: UnitEnum,
Auto Trait Implementations§
impl<ET, LT> Freeze for FlatOp<ET, LT>
impl<ET, LT> RefUnwindSafe for FlatOp<ET, LT>
impl<ET, LT> Send for FlatOp<ET, LT>
impl<ET, LT> Sync for FlatOp<ET, LT>
impl<ET, LT> Unpin for FlatOp<ET, LT>
impl<ET, LT> UnwindSafe for FlatOp<ET, LT>
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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<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 more