Trait libunftp::auth::UserDetail[][src]

pub trait UserDetail: Send + Sync + Display + Debug {
    fn account_enabled(&self) -> bool { ... }
}
Expand description

UserDetail defines the requirements for implementations that hold Security Subject information for use by the server.

Think information like:

  • General information
  • Account settings
  • Authorization information

At this time, this trait doesn’t contain much, but it will grow over time to allow for per-user authorization and behaviour.

Provided methods

fn account_enabled(&self) -> bool[src]

Tells if this subject’s account is enabled. This default implementation simply returns true.

Implementors