Struct quire::validate::Structure
[−]
[src]
pub struct Structure<'a> { /* fields omitted */ }
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.
Methods
impl<'a> Structure<'a>
[src]
fn new() -> Structure<'a>
[src]
fn member<S: Display, V: Validator + 'a>(
self,
name: S,
value: V
) -> Structure<'a>
[src]
self,
name: S,
value: V
) -> Structure<'a>