1/// Validate and deserialize booleans. 2pub trait ValidateBoolean: Sized { 3 type Error; 4 5 fn parse_bool(b: bool) -> Result<Self, Self::Error>; 6 7 fn validate_bool(b: bool) -> Result<(), Self::Error>; 8}