pub struct Structure<'a> { /* private fields */ }
Expand description
Structure validator
In yaml terms this validates that value is a map (or a null value, if all defaults are okay).
Additionally this validator allows to parse some scalar and convert it to the structure. This feature is useful to upgrade scalar value to a structure maintaining backwards compatiblity as well as for configuring common case more easily.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Structure<'a>
impl<'a> !RefUnwindSafe for Structure<'a>
impl<'a> !Send for Structure<'a>
impl<'a> !Sync for Structure<'a>
impl<'a> Unpin for Structure<'a>
impl<'a> !UnwindSafe for Structure<'a>
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