pub struct PlannedChanges {
pub changes: Vec<PlannedChange>,
pub segments: Vec<PlannedSegment>,
pub waiting: Option<u32>,
pub expected_color: Option<String>,
}Expand description
A print’s planned changes as the status read answers them.
Fields§
§changes: Vec<PlannedChange>Every change the file plans, in file order.
segments: Vec<PlannedSegment>The stretches between them, in file order.
waiting: Option<u32>The index of the change the printer is waiting at now; null when it is waiting at none.
expected_color: Option<String>The colour expected at the job’s current position, as #RRGGBB; null
when the file names none there or the position is unknown.
Trait Implementations§
Source§impl Clone for PlannedChanges
impl Clone for PlannedChanges
Source§impl Debug for PlannedChanges
impl Debug for PlannedChanges
Source§impl<'de> Deserialize<'de> for PlannedChanges
impl<'de> Deserialize<'de> for PlannedChanges
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 PlannedChanges
impl JsonSchema for PlannedChanges
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 PlannedChanges
impl PartialEq for PlannedChanges
Source§impl Sample for PlannedChanges
impl Sample for PlannedChanges
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
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§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§impl Serialize for PlannedChanges
impl Serialize for PlannedChanges
impl StructuralPartialEq for PlannedChanges
Auto Trait Implementations§
impl Forget for PlannedChanges
impl Freeze for PlannedChanges
impl Move for PlannedChanges
impl RefUnwindSafe for PlannedChanges
impl Send for PlannedChanges
impl Sync for PlannedChanges
impl Unpin for PlannedChanges
impl UnsafeUnpin for PlannedChanges
impl UnwindSafe for PlannedChanges
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