pub trait BasicAuthCred: Clone {
// Required methods
fn username(&self) -> &str;
fn verify_password(&self, password: &str) -> CredsResult<bool>;
// Provided method
fn display_name(&self) -> &str { ... }
}Required Methods§
fn username(&self) -> &str
fn verify_password(&self, password: &str) -> CredsResult<bool>
Provided Methods§
fn display_name(&self) -> &str
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.