pub struct LoadReport {
pub presets: Vec<Preset>,
pub errors: Vec<(PathBuf, PresetError)>,
pub warnings: Vec<(PathBuf, String)>,
}Expand description
The outcome of loading a preset directory: the presets that compiled, in filename order, plus the files that failed and the non-fatal problems found in the ones that succeeded (so the caller can surface both).
Fields§
§presets: Vec<Preset>Successfully compiled presets, sorted by filename for a stable cycle.
errors: Vec<(PathBuf, PresetError)>(path, error) for each .toml that failed to read or compile.
warnings: Vec<(PathBuf, String)>(path, warning) for each non-fatal problem in a preset that did
load — today, a binding naming a parameter its system does not consume
(ADR-0020). Surfacing these is what stops a typo from failing silently;
the preset itself is in presets and renders normally.
Auto Trait Implementations§
impl Freeze for LoadReport
impl RefUnwindSafe for LoadReport
impl Send for LoadReport
impl Sync for LoadReport
impl Unpin for LoadReport
impl UnsafeUnpin for LoadReport
impl UnwindSafe for LoadReport
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