pub struct PlannedSegment {
pub segment: u32,
pub color: Option<String>,
pub filament_mm: f64,
}Expand description
One stretch of the print between its planned changes.
Fields§
§segment: u32Its number: segment 0 runs from the file’s start to change 0, and segment n from change n-1 to change n, or to the file’s end.
color: Option<String>Its colour as #RRGGBB: segment 0’s the file’s filament_colour, every
later one its change’s; null where the file names none.
filament_mm: f64The filament it feeds, in millimetres: the net of its extrusion moves.
Trait Implementations§
Source§impl Clone for PlannedSegment
impl Clone for PlannedSegment
Source§impl Debug for PlannedSegment
impl Debug for PlannedSegment
Source§impl<'de> Deserialize<'de> for PlannedSegment
impl<'de> Deserialize<'de> for PlannedSegment
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 PlannedSegment
impl JsonSchema for PlannedSegment
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 PlannedSegment
impl PartialEq for PlannedSegment
Source§impl Sample for PlannedSegment
impl Sample for PlannedSegment
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 PlannedSegment
impl Serialize for PlannedSegment
impl StructuralPartialEq for PlannedSegment
Auto Trait Implementations§
impl Forget for PlannedSegment
impl Freeze for PlannedSegment
impl Move for PlannedSegment
impl RefUnwindSafe for PlannedSegment
impl Send for PlannedSegment
impl Sync for PlannedSegment
impl Unpin for PlannedSegment
impl UnsafeUnpin for PlannedSegment
impl UnwindSafe for PlannedSegment
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