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

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

type Error

type Output

Loading content...

Required methods

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

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

Loading content...

Implementors

Loading content...