pub struct ChargeRecord {
pub identity: ChargeIdentity,
pub length_mm: f64,
pub charged: Option<ChargedFilament>,
pub at: Timestamp,
pub event_id: EventId,
}Expand description
What the store holds of one debit.
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 was subtracted; absent when the filament was recorded uncharged.
at: TimestampWhen the charge was taken.
event_id: EventIdIts filament_consumed event.
Implementations§
Trait Implementations§
Source§impl Clone for ChargeRecord
impl Clone for ChargeRecord
Source§impl Debug for ChargeRecord
impl Debug for ChargeRecord
Source§impl PartialEq for ChargeRecord
impl PartialEq for ChargeRecord
impl StructuralPartialEq for ChargeRecord
Auto Trait Implementations§
impl Freeze for ChargeRecord
impl RefUnwindSafe for ChargeRecord
impl Send for ChargeRecord
impl Sync for ChargeRecord
impl Unpin for ChargeRecord
impl UnsafeUnpin for ChargeRecord
impl UnwindSafe for ChargeRecord
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