Trait validators::traits::ValidateBoolean
source · 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§
fn parse_bool(b: bool) -> Result<Self, Self::Error>
fn validate_bool(b: bool) -> Result<(), Self::Error>
Object Safety§
This trait is not object safe.