pub struct FilamentConsumedPayload {
pub analysed_length_mm: Option<f64>,
pub charge_key: ChargeKey,
pub charged: Option<ChargedFilament>,
pub length_mm: f64,
pub method: ChargeMethod,
pub note: Option<String>,
pub position: Option<FilePosition>,
pub tool: i64,
}Expand description
Filament was charged against a spool, or recorded uncharged.
Fields§
§analysed_length_mm: Option<f64>The file’s analysed length for the tool, in millimetres, when it had one.
charge_key: ChargeKeyThe durable identity of this debit.
charged: Option<ChargedFilament>The spool charged and the whole calculation of what it was charged; absent when nothing was tracked on the tool, and the filament was recorded uncharged.
length_mm: f64How much was fed, in millimetres.
method: ChargeMethodHow the length was worked out.
note: Option<String>Anything a reader needs to make sense of the figure.
position: Option<FilePosition>How far into the file the charge runs, when that was read.
tool: i64The tool that fed it, as its key names it.
Trait Implementations§
Source§impl Clone for FilamentConsumedPayload
impl Clone for FilamentConsumedPayload
Source§impl Debug for FilamentConsumedPayload
impl Debug for FilamentConsumedPayload
Source§impl<'de> Deserialize<'de> for FilamentConsumedPayload
impl<'de> Deserialize<'de> for FilamentConsumedPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FilamentConsumedPayload
impl PartialEq for FilamentConsumedPayload
Source§impl Serialize for FilamentConsumedPayload
impl Serialize for FilamentConsumedPayload
impl StructuralPartialEq for FilamentConsumedPayload
Auto Trait Implementations§
impl Freeze for FilamentConsumedPayload
impl RefUnwindSafe for FilamentConsumedPayload
impl Send for FilamentConsumedPayload
impl Sync for FilamentConsumedPayload
impl Unpin for FilamentConsumedPayload
impl UnsafeUnpin for FilamentConsumedPayload
impl UnwindSafe for FilamentConsumedPayload
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