pub struct SpoolsAnswer {
pub at_a_glance: Vec<String>,
pub spools: Vec<SpoolRecord>,
pub pending: Vec<PendingCharge>,
}Expand description
What the spools read answers.
at_a_glance is one line per spool, in the order spools lists them,
composed here so that what is left on each spool is the first thing a
reader of either rendering meets rather than a figure inside a whole
record. Its name is what puts it first: both renderings walk an answer’s
fields in name order, ahead of pending and spools.
Fields§
§at_a_glance: Vec<String>One line per spool in spools, in the same order.
spools: Vec<SpoolRecord>Every spool, retired ones only when asked for, most recently registered first.
pending: Vec<PendingCharge>Every charge held after a filament change nobody has confirmed, oldest first: what the next spool loaded on that tool is charged.
Implementations§
Source§impl SpoolsAnswer
impl SpoolsAnswer
Sourcepub fn of(spools: Vec<SpoolRecord>, pending: Vec<PendingCharge>) -> Self
pub fn of(spools: Vec<SpoolRecord>, pending: Vec<PendingCharge>) -> Self
The answer for these spools and these held charges.
Trait Implementations§
Source§impl Clone for SpoolsAnswer
impl Clone for SpoolsAnswer
Source§impl Debug for SpoolsAnswer
impl Debug for SpoolsAnswer
Source§impl JsonSchema for SpoolsAnswer
impl JsonSchema for SpoolsAnswer
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 SpoolsAnswer
impl PartialEq for SpoolsAnswer
Source§impl Serialize for SpoolsAnswer
impl Serialize for SpoolsAnswer
impl StructuralPartialEq for SpoolsAnswer
Auto Trait Implementations§
impl Freeze for SpoolsAnswer
impl RefUnwindSafe for SpoolsAnswer
impl Send for SpoolsAnswer
impl Sync for SpoolsAnswer
impl Unpin for SpoolsAnswer
impl UnsafeUnpin for SpoolsAnswer
impl UnwindSafe for SpoolsAnswer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more