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>;
}
Expand description

Validate and deserialize booleans.

Required Associated Types

Required Methods

Implementors