pub struct Step {Show 13 fields
pub id: String,
pub title: String,
pub notes: String,
pub adds: Vec<Add>,
pub view: Option<String>,
pub tools: Vec<ToolUse>,
pub torque: Option<Torque>,
pub callouts: Vec<Callout>,
pub arrows: Vec<Arrow>,
pub motion: Option<Value>,
pub signoff: Signoff,
pub camera_captured: bool,
pub steps: Vec<Step>,
}Fields§
§id: String§title: String§notes: String§adds: Vec<Add>§view: Option<String>The PMI view (camera, exploded state, balloons) the step shows.
tools: Vec<ToolUse>§torque: Option<Torque>§callouts: Vec<Callout>§arrows: Vec<Arrow>Insertion-motion arrows: each played as a short move home.
motion: Option<Value>Reserved for a motion clip attached to the step.
signoff: Signoff§camera_captured: boolThe author captured the view’s camera from the viewport: it is kept through every regeneration until Reset view. Otherwise the engine generates the camera from the step’s parts and its parent’s direction.
steps: Vec<Step>Child steps, in order: the group this step installs. They are read before it and see only the group’s own parts.
Implementations§
Source§impl Step
impl Step
Sourcepub fn contains(&self, step_id: &str) -> bool
pub fn contains(&self, step_id: &str) -> bool
Whether step_id is this step or one of its descendants.
Sourcepub fn occurrences_with_descendants<'a>(&'a self, out: &mut Vec<&'a str>)
pub fn occurrences_with_descendants<'a>(&'a self, out: &mut Vec<&'a str>)
Every occurrence this step and its descendants add.
Sourcepub fn coalesce_adds(&mut self)
pub fn coalesce_adds(&mut self)
One BOM row per part: adds of the same row (see Add::same_row)
become one add holding every occurrence, in first-add order. Merged
steps, moved parts and documents written one add per occurrence all
read as 8 × bolt, never eight rows of 1 × bolt.