pub trait Validator<S: Secret> { // Required method fn validate( &self, identity: &Identity, value: &S, ) -> Result<(), ValidatorError>; }