pub struct ShortSpool {
pub spool: PreflightSpool,
pub remaining_g: f64,
pub need: PreflightNeed,
pub marks: Vec<UnverifiedMark>,
}Expand description
A spool that holds less than the print needs and its buffer.
Fields§
§spool: PreflightSpoolThe spool.
remaining_g: f64What the spool holds, in grams.
need: PreflightNeedWhat the print needs from it.
marks: Vec<UnverifiedMark>The spool’s marks at the check, oldest first, so a spool both short and unverified says both.
Trait Implementations§
Source§impl Clone for ShortSpool
impl Clone for ShortSpool
Source§impl Debug for ShortSpool
impl Debug for ShortSpool
Source§impl<'de> Deserialize<'de> for ShortSpool
impl<'de> Deserialize<'de> for ShortSpool
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 ShortSpool
impl JsonSchema for ShortSpool
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 ShortSpool
impl PartialEq for ShortSpool
Source§impl Sample for ShortSpool
impl Sample for ShortSpool
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 ShortSpool
impl Serialize for ShortSpool
impl StructuralPartialEq for ShortSpool
Auto Trait Implementations§
impl Forget for ShortSpool
impl Freeze for ShortSpool
impl Move for ShortSpool
impl RefUnwindSafe for ShortSpool
impl Send for ShortSpool
impl Sync for ShortSpool
impl Unpin for ShortSpool
impl UnsafeUnpin for ShortSpool
impl UnwindSafe for ShortSpool
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