pub struct SpoolRecord {Show 13 fields
pub color: Option<String>,
pub density_g_cm3: f64,
pub diameter_mm: f64,
pub id: SpoolId,
pub initial_g: f64,
pub lifecycle: SpoolLifecycle,
pub material: String,
pub name: String,
pub registered_at: Timestamp,
pub remaining_g: f64,
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.
lifecycle: SpoolLifecycleWhere the spool is in its life: on the shelf, loaded on a tool, or retired — and never both of the last two.
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.
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.