pub enum Op {
CreateRecord(CreateRecord),
CreateEntry(CreateEntry),
Update(Update),
Delete(Delete),
AgentActivity(AgentActivity),
CreateLink(CreateLink),
DeleteLink(DeleteLink),
}Expand description
A DHT operation produced by an action and validated by an authority.
Variants carry the SignedHashed<Action> directly; consumers inspect
action.hashed.content.data (ActionData) to discriminate, rather than
matching distinct typed per-variant action structs.
Variants§
CreateRecord(CreateRecord)
Stores a Record (validated by the action authority).
CreateEntry(CreateEntry)
Stores an Entry (validated by the entry authority). The action’s
ActionData is Create or Update.
Update(Update)
Registers an update against an entry. The action’s data is Update.
Delete(Delete)
Registers a delete against an entry. The action’s data is Delete.
AgentActivity(AgentActivity)
Registers an action on an agent’s source chain (validated by the chain authority); produced for every action.
CreateLink(CreateLink)
Registers a link. The action’s data is CreateLink.
DeleteLink(DeleteLink)
Registers a link deletion. The action’s data is DeleteLink.
Implementations§
Source§impl Op
impl Op
The author of this op’s action.
Sourcepub fn action_seq(&self) -> u32
pub fn action_seq(&self) -> u32
The source-chain sequence of this op’s action.
Sourcepub fn prev_action(&self) -> Option<&HoloHash<Action>>
pub fn prev_action(&self) -> Option<&HoloHash<Action>>
The previous action hash, if any.
Sourcepub fn action_type(&self) -> ActionType
pub fn action_type(&self) -> ActionType
The action type of this op.
Sourcepub fn action_hash(&self) -> &HoloHash<Action>
pub fn action_hash(&self) -> &HoloHash<Action>
The action hash of this op.