#[non_exhaustive]pub struct Lowered {
pub spec: Spec,
pub refusals: Vec<Problem>,
pub trail: Trail,
pub problems: Vec<Problem>,
}Expand description
A spec lowered: the model the plan builds from, what the target refuses, and where each lowered field came from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.spec: SpecThe spec in the form the backends read.
refusals: Vec<Problem>The machines (or steps) the target can’t run, as refused problems at the field that
rules each out. Empty for Scope::Lab.
trail: TrailLowered field paths back to the written ones.
problems: Vec<Problem>What lowering couldn’t lower, at the field the author wrote: VLANs that don’t fit their LAN, a port without its number, a healthcheck on a port the machine doesn’t name. The spec’s own checks report the last two as well; on a valid spec, only the first can come.
Trait Implementations§
impl StructuralPartialEq for Lowered
Auto Trait Implementations§
impl Freeze for Lowered
impl RefUnwindSafe for Lowered
impl Send for Lowered
impl Sync for Lowered
impl Unpin for Lowered
impl UnsafeUnpin for Lowered
impl UnwindSafe for Lowered
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