pub struct ChargeRecord {
pub key: ChargeKey,
pub tool: i64,
pub print_id: Option<PrintId>,
pub spool_id: Option<SpoolId>,
pub length_mm: f64,
pub grams: Option<f64>,
pub at: Timestamp,
pub event_id: EventId,
}Expand description
What the store holds of one debit.
Fields§
§key: ChargeKeyThe durable identity of the debit.
tool: i64The tool that fed the filament, in the printer’s own numbering.
print_id: Option<PrintId>The print it was fed in, when it was fed in one this system recorded.
spool_id: Option<SpoolId>The spool charged; absent when the filament was recorded uncharged.
length_mm: f64How much was fed, in millimetres.
grams: Option<f64>What that weighs, in grams.
at: TimestampWhen the charge was taken.
event_id: EventIdIts filament_consumed event.
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