pub trait ValidateBoolean: Sized {
    type Error;

    // Required methods
    fn parse_bool(b: bool) -> Result<Self, Self::Error>;
    fn validate_bool(b: bool) -> Result<(), Self::Error>;
}
Expand description

Validate and deserialize booleans.

Required Associated Types§

Required Methods§

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§