pub struct SpoolAdjustedPayload {
pub spool_id: SpoolId,
pub remaining_before_g: f64,
pub remaining_after_g: f64,
pub gross_g: Option<f64>,
pub took_pending: Vec<PendingTaken>,
pub cleared_marks: Vec<ClearedMark>,
pub actor: Actor,
pub reason: String,
}Expand description
A spool’s remaining figure was corrected.
Fields§
§spool_id: SpoolIdThe spool corrected.
remaining_before_g: f64Its figure before, in grams, after any pending charge it took.
remaining_after_g: f64Its figure after, in grams.
gross_g: Option<f64>The scale reading the figure was worked out from, when it was given as one.
took_pending: Vec<PendingTaken>The pending charges the correction took first, each also its own
filament_consumed event under its key.
cleared_marks: Vec<ClearedMark>Every mark the correction cleared.
actor: ActorWho corrected it.
reason: StringWhy.
Trait Implementations§
Source§impl Clone for SpoolAdjustedPayload
impl Clone for SpoolAdjustedPayload
Source§impl Debug for SpoolAdjustedPayload
impl Debug for SpoolAdjustedPayload
Source§impl<'de> Deserialize<'de> for SpoolAdjustedPayload
impl<'de> Deserialize<'de> for SpoolAdjustedPayload
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 EventPayload for SpoolAdjustedPayload
impl EventPayload for SpoolAdjustedPayload
Source§impl JsonSchema for SpoolAdjustedPayload
impl JsonSchema for SpoolAdjustedPayload
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 SpoolAdjustedPayload
impl PartialEq for SpoolAdjustedPayload
Source§impl Sample for SpoolAdjustedPayload
impl Sample for SpoolAdjustedPayload
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 SpoolAdjustedPayload
impl Serialize for SpoolAdjustedPayload
impl StructuralPartialEq for SpoolAdjustedPayload
Auto Trait Implementations§
impl Forget for SpoolAdjustedPayload
impl Freeze for SpoolAdjustedPayload
impl Move for SpoolAdjustedPayload
impl RefUnwindSafe for SpoolAdjustedPayload
impl Send for SpoolAdjustedPayload
impl Sync for SpoolAdjustedPayload
impl Unpin for SpoolAdjustedPayload
impl UnsafeUnpin for SpoolAdjustedPayload
impl UnwindSafe for SpoolAdjustedPayload
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