pub struct RecoverySection {
pub away_from_bed: Option<String>,
pub max_z_mm: Option<f64>,
pub max_lift_mm: Option<f64>,
pub clearance_margin_mm: Option<f64>,
pub park_xy: Option<Vec<f64>>,
pub z_home_xy: Option<Vec<f64>>,
pub z_home_sweeps_bed: Option<bool>,
}Expand description
The printer’s own facts a recovery is checked against, as written down.
Left out altogether, or written with no key, no recovery action can be checked and every one is refused as not configured. Written with any key, every key without a default is required. Each is read as written so that a value that cannot work is refused naming its key.
Fields§
§away_from_bed: Option<String>Which way along Z moves the nozzle away from the bed: z_plus or
z_minus.
max_z_mm: Option<f64>The highest Z the machine reaches, in millimetres.
max_lift_mm: Option<f64>The longest lift one recovery may ask for, in millimetres; 50 when left out.
clearance_margin_mm: Option<f64>How far above the tallest part the nozzle must be, in millimetres; 5 when left out.
park_xy: Option<Vec<f64>>Where a park moves the head, as [x, y] in millimetres.
z_home_xy: Option<Vec<f64>>Where the machine homes Z, as [x, y] in millimetres.
z_home_sweeps_bed: Option<bool>Whether homing Z brings a gantry down over the whole bed.
Trait Implementations§
Source§impl Clone for RecoverySection
impl Clone for RecoverySection
Source§impl Debug for RecoverySection
impl Debug for RecoverySection
Source§impl Default for RecoverySection
impl Default for RecoverySection
Source§impl<'de> Deserialize<'de> for RecoverySection
impl<'de> Deserialize<'de> for RecoverySection
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>,
Source§impl JsonSchema for RecoverySection
impl JsonSchema for RecoverySection
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for RecoverySection
impl PartialEq for RecoverySection
Source§impl Serialize for RecoverySection
impl Serialize for RecoverySection
impl StructuralPartialEq for RecoverySection
Auto Trait Implementations§
impl Forget for RecoverySection
impl Freeze for RecoverySection
impl Move for RecoverySection
impl RefUnwindSafe for RecoverySection
impl Send for RecoverySection
impl Sync for RecoverySection
impl Unpin for RecoverySection
impl UnsafeUnpin for RecoverySection
impl UnwindSafe for RecoverySection
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.