pub trait ValidateSecret<T> {
    fn validate(val: &str) -> Option<String>;
}
Expand description

An extension point used to validate different types of secrets

Required Methods§

Returns whether val is a valid secret of type T, i.e., None if it valid, or Some(String) if it is not (the value is the reason why it is not valid).

Implementations on Foreign Types§

Secret validation for SecretKey

Implementors§