pub fn key( is_valid: bool, context: &'static str, reason: &'static str, ) -> Result<()>
Validate key format or content