schema
Module: schema
Section titled “Module: schema”Contents
Section titled “Contents”Structs
FirmaConfig- Afirma.tomlparsed once. Use when more than one[section]is
Functions
load_section- Readpathand return the named[section]body as standalone TOML.
firma_config::schema::FirmaConfig
Section titled “firma_config::schema::FirmaConfig”Struct
A firma.toml parsed once. Use when more than one [section] is
needed from the same file (e.g. doctor reads both [authority]
and [sidecar]) so the file is read and parsed a single time.
Methods:
fn load(path: &Path) -> Result<Self, String>- Read and parsepathonce.fn section(self: &Self, section: &str) -> Result<String, String>- The named[section]body re-serialized as standalone TOML.
Trait Implementations:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Clone
fn clone(self: &Self) -> FirmaConfig
firma_config::schema::load_section
Section titled “firma_config::schema::load_section”Function
Read path and return the named [section] body as standalone TOML.
The unified firma.toml is always sectioned. A missing [section]
is a hard error (fail-closed) — there is no flat-file fallback.
Errors
Section titled “Errors”Returns the read/parse error, or a “missing section” error, as a string (caller wraps it).
fn load_section(path: &std::path::Path, section: &str) -> Result<String, String>