Trait validators::traits::ValidateBoolean[][src]

pub trait ValidateBoolean {
    type Error;
    type Output;
    fn parse_bool(b: bool) -> Result<Self::Output, Self::Error>;
fn validate_bool(b: bool) -> Result<(), Self::Error>; }

Validate and deserialize booleans.

Associated Types

Loading content...

Required methods

fn parse_bool(b: bool) -> Result<Self::Output, Self::Error>[src]

fn validate_bool(b: bool) -> Result<(), Self::Error>[src]

Loading content...

Implementors

Loading content...