pub struct SpoolRecord {Show 14 fields
pub color: Option<String>,
pub density_g_cm3: f64,
pub diameter_mm: f64,
pub id: SpoolId,
pub initial_g: f64,
pub loaded_on_tool: Option<i64>,
pub material: String,
pub name: String,
pub registered_at: Timestamp,
pub remaining_g: f64,
pub retired_at: Option<Timestamp>,
pub tare_g: Option<f64>,
pub trust: SpoolTrust,
pub updated_at: Timestamp,
}Expand description
One spool the operator registered, and what is known of it now.
Fields§
§color: Option<String>The filament’s colour, when the operator gave one.
density_g_cm3: f64The material’s density, in grams per cubic centimetre; above zero.
diameter_mm: f64The filament’s diameter, in millimetres; above zero.
id: SpoolIdThis spool’s identifier, minted when it was registered.
initial_g: f64The net filament on the spool when it was full, in grams; above zero.
loaded_on_tool: Option<i64>The tool the spool is loaded on, when it is loaded.
material: StringThe material, as given and trimmed, such as PLA; never empty.
name: StringThe operator’s own label for the spool; never empty.
registered_at: TimestampWhen the spool was registered.
remaining_g: f64The filament left, in grams.
Always the initial figure less every charge plus every correction. A charge is never refused or clamped, so this may go below zero.
retired_at: Option<Timestamp>When the spool was retired, if it has been.
tare_g: Option<f64>The empty spool’s own weight, in grams, when the operator gave it.
trust: SpoolTrustHow far the remaining figure can be trusted.
updated_at: TimestampWhen anything about the spool last changed.