Skip to main content

BasicAuthCred

Trait BasicAuthCred 

Source
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§

Source

fn username(&self) -> &str

Source

fn verify_password(&self, password: &str) -> CredsResult<bool>

Provided Methods§

Source

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.

Implementors§