pub enum OpType<ET, LT>where
ET: UnitEnum,{
StoreRecord(OpRecord<ET, LT>),
StoreEntry(OpEntry<ET>),
RegisterAgentActivity(OpActivity<<ET as UnitEnum>::Unit, LT>),
RegisterCreateLink {
base_address: HoloHash<AnyLinkable>,
target_address: HoloHash<AnyLinkable>,
tag: LinkTag,
link_type: LT,
},
RegisterDeleteLink {
original_link_hash: HoloHash<Action>,
base_address: HoloHash<AnyLinkable>,
target_address: HoloHash<AnyLinkable>,
tag: LinkTag,
link_type: LT,
},
RegisterUpdate(OpUpdate<ET>),
RegisterDelete(OpDelete<ET>),
}
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
Fields
base_address: HoloHash<AnyLinkable>
The base address where this link is stored.
target_address: HoloHash<AnyLinkable>
The target address of this link.
tag: LinkTag
The link’s tag data.
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.
RegisterDeleteLink
Fields
base_address: HoloHash<AnyLinkable>
The base address where this link is stored. This is the base address of the link that is being deleted.
target_address: HoloHash<AnyLinkable>
The target address of the link being deleted.
tag: LinkTag
The deleted links tag data.
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.
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<ET>)
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
impl<ET, LT> PartialEq<OpType<ET, LT>> for OpType<ET, LT>where
ET: PartialEq<ET> + UnitEnum,
LT: PartialEq<LT>,
impl<ET, LT> PartialEq<OpType<ET, LT>> for OpType<ET, LT>where
ET: PartialEq<ET> + UnitEnum,
LT: PartialEq<LT>,
impl<ET, LT> Eq for OpType<ET, LT>where
ET: Eq + UnitEnum,
LT: Eq,
impl<ET, LT> StructuralEq for OpType<ET, LT>where
ET: UnitEnum,
impl<ET, LT> StructuralPartialEq for OpType<ET, LT>where
ET: UnitEnum,
Auto Trait Implementations
impl<ET, LT> RefUnwindSafe for OpType<ET, LT>where
ET: RefUnwindSafe,
LT: RefUnwindSafe,
<ET as UnitEnum>::Unit: RefUnwindSafe,
impl<ET, LT> Send for OpType<ET, LT>where
ET: Send,
LT: Send,
<ET as UnitEnum>::Unit: Send,
impl<ET, LT> Sync for OpType<ET, LT>where
ET: Sync,
LT: Sync,
<ET as UnitEnum>::Unit: Sync,
impl<ET, LT> Unpin for OpType<ET, LT>where
ET: Unpin,
LT: Unpin,
<ET as UnitEnum>::Unit: Unpin,
impl<ET, LT> UnwindSafe for OpType<ET, LT>where
ET: UnwindSafe,
LT: UnwindSafe,
<ET as UnitEnum>::Unit: UnwindSafe,
Blanket Implementations
impl<T> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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>
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
sourcefn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
sourcefn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read morefn 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).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.