pub struct ValidatedConfig {
pub config: Config,
pub devices: Vec<ResolvedDeviceRole>,
pub routes: Vec<ValidatedRoute>,
pub warnings: Vec<String>,
}Expand description
The output of successful validation.
Fields§
§config: Config§devices: Vec<ResolvedDeviceRole>§routes: Vec<ValidatedRoute>§warnings: Vec<String>Implementations§
Source§impl ValidatedConfig
impl ValidatedConfig
Sourcepub fn device_by_name(&self, name: &str) -> Option<&ResolvedDeviceRole>
pub fn device_by_name(&self, name: &str) -> Option<&ResolvedDeviceRole>
Returns the resolved device role for the given alias.
Trait Implementations§
Source§impl Clone for ValidatedConfig
impl Clone for ValidatedConfig
Source§fn clone(&self) -> ValidatedConfig
fn clone(&self) -> ValidatedConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidatedConfig
impl Debug for ValidatedConfig
Auto Trait Implementations§
impl Freeze for ValidatedConfig
impl RefUnwindSafe for ValidatedConfig
impl Send for ValidatedConfig
impl Sync for ValidatedConfig
impl Unpin for ValidatedConfig
impl UnsafeUnpin for ValidatedConfig
impl UnwindSafe for ValidatedConfig
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