pub struct Charge {
pub identity: ChargeIdentity,
pub length_mm: f64,
pub charged: Option<ChargedFilament>,
pub at: Timestamp,
pub event: EventDraft,
}Expand description
One debit on its way into the store.
Fields§
§identity: ChargeIdentityWhose debit it is, from which its tool and print are read.
length_mm: f64How much was fed, in millimetres.
charged: Option<ChargedFilament>The spool charged and the whole calculation of what is subtracted from it; absent when nothing was tracked on the tool, and the filament is recorded uncharged.
at: TimestampWhen the charge was taken.
event: EventDraftIts filament_consumed event.
Trait Implementations§
impl StructuralPartialEq for Charge
Auto Trait Implementations§
impl Freeze for Charge
impl RefUnwindSafe for Charge
impl Send for Charge
impl Sync for Charge
impl Unpin for Charge
impl UnsafeUnpin for Charge
impl UnwindSafe for Charge
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