Trait anansi_core::web::BaseUser

source ·
pub trait BaseUser: Record<Pk = BigInt> + Send + Sync {
    type Name: Display;
    type Secret: Display;

    // Required methods
    fn username(&self) -> &Self::Name;
    fn secret(&self) -> &Option<Self::Secret>;
    fn is_auth(&self) -> bool;
}

Required Associated Types§

Required Methods§

source

fn username(&self) -> &Self::Name

source

fn secret(&self) -> &Option<Self::Secret>

source

fn is_auth(&self) -> bool

Implementors§