pub struct Timing {Show 33 fields
pub layer_height_um: Option<u32>,
pub normal_exposure_ms: Option<u32>,
pub bottom_exposure_ms: Option<u32>,
pub bottom_layer_count: Option<u32>,
pub transition_layer_count: Option<u32>,
pub lift_slow_distance_um: Option<u32>,
pub lift_slow_speed_um_min: Option<u32>,
pub lift_fast_distance_um: Option<u32>,
pub lift_fast_speed_um_min: Option<u32>,
pub retract_fast_distance_um: Option<u32>,
pub retract_fast_speed_um_min: Option<u32>,
pub retract_slow_distance_um: Option<u32>,
pub retract_slow_speed_um_min: Option<u32>,
pub bottom_lift_slow_distance_um: Option<u32>,
pub bottom_lift_slow_speed_um_min: Option<u32>,
pub bottom_lift_fast_distance_um: Option<u32>,
pub bottom_lift_fast_speed_um_min: Option<u32>,
pub bottom_retract_fast_distance_um: Option<u32>,
pub bottom_retract_fast_speed_um_min: Option<u32>,
pub bottom_retract_slow_distance_um: Option<u32>,
pub bottom_retract_slow_speed_um_min: Option<u32>,
pub wait_time_before_cure_ms: Option<u32>,
pub wait_time_after_cure_ms: Option<u32>,
pub wait_time_after_lift_ms: Option<u32>,
pub bottom_wait_time_before_cure_ms: Option<u32>,
pub bottom_wait_time_after_cure_ms: Option<u32>,
pub bottom_wait_time_after_lift_ms: Option<u32>,
pub light_pwm: Option<u32>,
pub bottom_light_pwm: Option<u32>,
pub chamber_temperature_c: Option<f64>,
pub vat_temperature_c: Option<f64>,
pub cure_curve: Option<CureCurve>,
pub extra: Map<String, Value>,
}Expand description
The timing, motion, PWM and temperature namespace shared by META, a
META.sectors entry, PROF.settings and an LROV payload.
Every field is optional: META requires some of them, a sector entry or an
LROV payload supplies only what it changes, and a PROF supplies all of
them. A bottom_* field that is absent equals its normal counterpart
([spec/14-layer-timing.md] section 8).
Fields§
§layer_height_um: Option<u32>Default layer thickness in micrometers.
normal_exposure_ms: Option<u32>Exposure time for normal layers, in milliseconds.
bottom_exposure_ms: Option<u32>Exposure time for bottom layers, in milliseconds.
bottom_layer_count: Option<u32>How many layers the bottom range holds.
transition_layer_count: Option<u32>How many layers interpolate between bottom and normal.
lift_slow_distance_um: Option<u32>Lift, slow segment: the peel. Distance of that one segment.
lift_slow_speed_um_min: Option<u32>Lift, slow segment speed.
lift_fast_distance_um: Option<u32>Lift, fast segment: the remainder. 0 makes the lift single-stage.
lift_fast_speed_um_min: Option<u32>Lift, fast segment speed.
retract_fast_distance_um: Option<u32>Retract, fast segment: most of the return. Distance of that one segment.
retract_fast_speed_um_min: Option<u32>Retract, fast segment speed.
retract_slow_distance_um: Option<u32>Retract, slow segment: the final approach. 0 makes the retract single-stage.
retract_slow_speed_um_min: Option<u32>Retract, slow segment speed.
bottom_lift_slow_distance_um: Option<u32>Bottom-layer lift, slow segment distance.
bottom_lift_slow_speed_um_min: Option<u32>Bottom-layer lift, slow segment speed.
bottom_lift_fast_distance_um: Option<u32>Bottom-layer lift, fast segment distance.
bottom_lift_fast_speed_um_min: Option<u32>Bottom-layer lift, fast segment speed.
bottom_retract_fast_distance_um: Option<u32>Bottom-layer retract, fast segment distance.
bottom_retract_fast_speed_um_min: Option<u32>Bottom-layer retract, fast segment speed.
bottom_retract_slow_distance_um: Option<u32>Bottom-layer retract, slow segment distance.
bottom_retract_slow_speed_um_min: Option<u32>Bottom-layer retract, slow segment speed.
wait_time_before_cure_ms: Option<u32>Pause before curing, in milliseconds.
wait_time_after_cure_ms: Option<u32>Pause after curing, in milliseconds.
wait_time_after_lift_ms: Option<u32>Pause after the lift, in milliseconds.
bottom_wait_time_before_cure_ms: Option<u32>Bottom-layer pause before curing, in milliseconds.
bottom_wait_time_after_cure_ms: Option<u32>Bottom-layer pause after curing, in milliseconds.
bottom_wait_time_after_lift_ms: Option<u32>Bottom-layer pause after the lift, in milliseconds.
light_pwm: Option<u32>Light PWM for normal layers, 0-255.
bottom_light_pwm: Option<u32>Light PWM for bottom layers, 0-255.
chamber_temperature_c: Option<f64>Chamber target temperature in Celsius.
vat_temperature_c: Option<f64>Vat target temperature in Celsius.
cure_curve: Option<CureCurve>Experimental resin working curve.
extra: Map<String, Value>Unknown keys, preserved verbatim.
In a META payload the schema’s own extra object also lands here, under
the key "extra"; see Timing::vendor_extra.
Implementations§
Source§impl Timing
impl Timing
Sourcepub fn vendor_extra(&self) -> Option<&Value>
pub fn vendor_extra(&self) -> Option<&Value>
The META or PROF extra object, if the payload carried one.
Sourcepub fn field_names() -> &'static [&'static str]
pub fn field_names() -> &'static [&'static str]
Every field name this namespace defines, in schema order.
Sourcepub fn missing_from(object: &Map<String, Value>, names: &[&str]) -> Vec<String>
pub fn missing_from(object: &Map<String, Value>, names: &[&str]) -> Vec<String>
Whether every field in names is present in the raw payload.
self alone cannot answer this: a field that was absent and a field that
was explicitly null deserialize alike, so presence must be read from
the raw JSON object.