pub struct FilamentConsumedPayload {
pub charge_key: ChargeKey,
pub tool: i64,
pub method: ChargeMethod,
pub length_mm: f64,
pub charged: Option<ChargedFilament>,
pub analysed_length_mm: Option<f64>,
pub position: Option<FilePosition>,
pub note: Option<String>,
}Expand description
Filament was charged against a spool, or recorded uncharged.
Fields§
§charge_key: ChargeKeyThe durable identity of this debit.
tool: i64The tool that fed it, as its key names it.
method: ChargeMethodHow the length was worked out.
length_mm: f64How much was fed, in millimetres.
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.
analysed_length_mm: Option<f64>The file’s analysed length for the tool, in millimetres, when it had one.
position: Option<FilePosition>How far into the file the charge runs, when that was read.
note: Option<String>Anything a reader needs to make sense of the figure.
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 JsonSchema for FilamentConsumedPayload
impl JsonSchema for FilamentConsumedPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for FilamentConsumedPayload
impl PartialEq for FilamentConsumedPayload
Source§impl Sample for FilamentConsumedPayload
impl Sample for FilamentConsumedPayload
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
Source§impl Serialize for FilamentConsumedPayload
impl Serialize for FilamentConsumedPayload
impl StructuralPartialEq for FilamentConsumedPayload
Auto Trait Implementations§
impl Forget for FilamentConsumedPayload
impl Freeze for FilamentConsumedPayload
impl Move 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