pub struct NewSpool {
pub name: String,
pub material: String,
pub color: Option<String>,
pub diameter_mm: f64,
pub density_g_cm3: f64,
pub initial_g: f64,
pub remaining_g: f64,
pub tare_g: Option<f64>,
pub loaded_on_tool: Option<i64>,
pub trust: SpoolTrust,
pub registered_at: Timestamp,
}Expand description
A spool on its way into the store, before the store mints its identifier.
A SpoolRecord without what the store sets itself: its id, minted; and
its updated_at, which is registered_at. It is shelved, or loaded on a
tool, and never retired.
Fields§
§name: StringThe operator’s own label for the spool.
material: StringThe material, such as PLA.
color: Option<String>The filament’s colour, when the operator gave one.
diameter_mm: f64The filament’s diameter, in millimetres.
density_g_cm3: f64The material’s density, in grams per cubic centimetre.
initial_g: f64The net filament on the spool when it was full, in grams.
remaining_g: f64The filament left, in grams.
tare_g: Option<f64>The empty spool’s own weight, in grams, when the operator gave it.
loaded_on_tool: Option<i64>The tool the spool is loaded on, when it is registered loaded.
trust: SpoolTrustHow far the remaining figure can be trusted.
registered_at: TimestampWhen the spool was registered.
Trait Implementations§
impl StructuralPartialEq for NewSpool
Auto Trait Implementations§
impl Freeze for NewSpool
impl RefUnwindSafe for NewSpool
impl Send for NewSpool
impl Sync for NewSpool
impl Unpin for NewSpool
impl UnsafeUnpin for NewSpool
impl UnwindSafe for NewSpool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more