pub struct ConfigFile {Show 13 fields
pub state_dir: Option<PathBuf>,
pub listen: Option<String>,
pub octoprint: OctoprintSection,
pub safety: Option<SafetyEnvelope>,
pub supervisor: SupervisorSection,
pub ingress: IngressSection,
pub api: ApiSection,
pub camera: CameraSection,
pub obico: ObicoSection,
pub vision: VisionSection,
pub spools: SpoolsSection,
pub recovery: RecoverySection,
pub policy: PolicySection,
}Expand description
The whole configuration file, exactly as it is written down.
This is the parsed document rather than the validated configuration:
ServerConfig::load is what turns one into the other, and every value a
later step could find wrong is ruled on there.
Fields§
§state_dir: Option<PathBuf>Where the store, the images and the sessions live.
listen: Option<String>The address the API and the ingress are served on.
octoprint: OctoprintSectionWhere the OctoPrint instance is.
safety: Option<SafetyEnvelope>The operator’s safety envelope.
supervisor: SupervisorSectionHow the supervising agent is reached.
ingress: IngressSectionWhat the Obico ingress requires.
api: ApiSectionWhat a caller of the versioned API authenticates with.
camera: CameraSectionWhere a fresh frame of the print is fetched from.
obico: ObicoSectionWhere Obico’s own API answers.
vision: VisionSectionHow a camera frame is judged.
spools: SpoolsSectionHow spools are checked before a print.
recovery: RecoverySectionThe printer’s own facts a recovery is checked against.
policy: PolicySectionThe policies beside the safety envelope.
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§impl Debug for ConfigFile
impl Debug for ConfigFile
Source§impl<'de> Deserialize<'de> for ConfigFile
impl<'de> Deserialize<'de> for ConfigFile
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 ConfigFile
impl JsonSchema for ConfigFile
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 ConfigFile
impl PartialEq for ConfigFile
Source§impl Serialize for ConfigFile
impl Serialize for ConfigFile
impl StructuralPartialEq for ConfigFile
Auto Trait Implementations§
impl Freeze for ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnsafeUnpin for ConfigFile
impl UnwindSafe for ConfigFile
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>,
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 more