pub struct SpoolsSection {
pub preflight: Option<String>,
pub buffer_percent: Option<f64>,
pub buffer_min_g: Option<f64>,
pub analysis_wait_seconds: Option<i64>,
}Expand description
How spools are checked before a print, as written down.
Every key is optional, and one left out takes the supervision core’s own default. The mode is read as text rather than as the core’s own type so that a mode outside the three is refused naming its key rather than by the parser in words of its own.
Fields§
§preflight: Option<String>What a start does when the loaded spool is short, unverified, or the
file has no analysis: refuse, warn or off. Left out, refuse.
buffer_percent: Option<f64>The margin asked beyond what a print needs, as a percentage of it.
buffer_min_g: Option<f64>The least margin asked, in grams, however small the print.
analysis_wait_seconds: Option<i64>How long a start waits for OctoPrint’s analysis of a file that has
none yet, in whole seconds; zero waits not at all.
Trait Implementations§
Source§impl Clone for SpoolsSection
impl Clone for SpoolsSection
Source§impl Debug for SpoolsSection
impl Debug for SpoolsSection
Source§impl Default for SpoolsSection
impl Default for SpoolsSection
Source§impl<'de> Deserialize<'de> for SpoolsSection
impl<'de> Deserialize<'de> for SpoolsSection
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 SpoolsSection
impl JsonSchema for SpoolsSection
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 SpoolsSection
impl PartialEq for SpoolsSection
Source§impl Serialize for SpoolsSection
impl Serialize for SpoolsSection
impl StructuralPartialEq for SpoolsSection
Auto Trait Implementations§
impl Forget for SpoolsSection
impl Freeze for SpoolsSection
impl Move for SpoolsSection
impl RefUnwindSafe for SpoolsSection
impl Send for SpoolsSection
impl Sync for SpoolsSection
impl Unpin for SpoolsSection
impl UnsafeUnpin for SpoolsSection
impl UnwindSafe for SpoolsSection
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,
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> ⓘ
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 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.