Struct quire::validate::Mapping [−][src]
pub struct Mapping<'a> { /* fields omitted */ }
Validates yaml mapping
This type has type for a key and value and also can be converted from scalar as shortcut.
Methods
impl<'a> Mapping<'a>
[src]
impl<'a> Mapping<'a>
pub fn new<V: Validator + 'a, W: Validator + 'a>(key: V, val: W) -> Mapping<'a>
[src]
pub fn new<V: Validator + 'a, W: Validator + 'a>(key: V, val: W) -> Mapping<'a>
pub fn parser(self, f: fn(scalar: Ast) -> BTreeMap<String, Ast>) -> Mapping<'a>
[src]
pub fn parser(self, f: fn(scalar: Ast) -> BTreeMap<String, Ast>) -> Mapping<'a>
Trait Implementations
impl<'a> Debug for Mapping<'a>
[src]
impl<'a> Debug for Mapping<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Validator for Mapping<'a>
[src]
impl<'a> Validator for Mapping<'a>