pub struct TrajectoryStep {
pub id: String,
pub kind: TrajectoryStepKind,
pub description: String,
pub at: String,
pub actor: String,
pub references: Vec<String>,
}Fields§
§id: Stringvts_<16hex>, content-addressed over the parent trajectory id
- step kind + description + at + actor.
kind: TrajectoryStepKindWhat kind of step this is.
description: StringFree-text description. For RuledOut, prose should name the reason for exclusion — that’s the load-bearing field for the next agent reading the search.
at: StringRFC 3339 timestamp the step happened.
actor: StringStable actor id of who took the step. May differ from the
trajectory’s deposited_by when an agent appends to a
trajectory another actor opened.
references: Vec<String>Optional referenced kernel objects (vf_*, vnr_*, vrep_*,
vpred_*, vd_*, vc_*). Lets a step cite the negative
result it produced, the dataset it ran against, etc., without
duplicating their content.
Implementations§
Source§impl TrajectoryStep
impl TrajectoryStep
Sourcepub fn content_address(
trajectory_id: &str,
kind: &TrajectoryStepKind,
description: &str,
at: &str,
actor: &str,
) -> String
pub fn content_address( trajectory_id: &str, kind: &TrajectoryStepKind, description: &str, at: &str, actor: &str, ) -> String
Compute the content-addressed step id per v0.50 spec:
SHA-256(trajectory_id | kind.canonical() | normalize(description) | at | actor).
Returns first 16 hex chars prefixed with “vts_”.
Trait Implementations§
Source§impl Clone for TrajectoryStep
impl Clone for TrajectoryStep
Source§fn clone(&self) -> TrajectoryStep
fn clone(&self) -> TrajectoryStep
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more