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 Ops.

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.

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.

§link_type: LT

The app defined link type of this link.

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

§original_link_hash: HoloHash<Action>

The hash deleted links Action.

§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.

§link_type: LT

The app defined link type of the deleted link.

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type for metadata in pointers and references to Self.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
upcast ref
upcast mut ref
upcast boxed dyn
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more