pub struct Update {
pub error: Option<String>,
pub program: Option<ProgramState>,
pub scene: Option<SceneState>,
pub step: Option<StepState>,
pub files: Option<Vec<File>>,
pub written: Option<Vec<File>>,
pub export: Option<Export>,
pub tool: Option<Presentation>,
pub inspection: Option<Inspection>,
pub lit: Option<Lighting>,
pub report: Option<Report>,
}Expand description
What an editor shows after a command. What did not change since the last update is left out.
Fields§
§error: Option<String>Why the command was refused, if it was: then it changed nothing.
program: Option<ProgramState>§scene: Option<SceneState>§step: Option<StepState>The step being edited; None if there is none.
files: Option<Vec<File>>The program files the command added, the one now edited first.
written: Option<Vec<File>>The program files besides the one edited the command changed — a step of a placed part committed to its file — for the front end to keep: none if it changed none.
export: Option<Export>The file Command::Export wrote, or Command::Copy copied.
tool: Option<Presentation>What the tool in hand shows, while no step is edited: the drag tool’s part it would drag lit, and whether a press grabs it; the pick tool’s picks, and what the answer about them draws.
inspection: Option<Inspection>The answer of the tool in hand about the part — the pick tool’s
inspector’s about its picks — or the answer to Command::Inspect.
lit: Option<Lighting>What to draw lit, of the part drawn and of its placed parts, when
it changed (see crate::view::lit::Lighting): what the step or
the tool lights and what Command::Light does. A viewer keeps it
until it is sent again.
report: Option<Report>What Command::Report asked for.