pub trait UserInterface: Send + Sync {
// Required methods
fn user_identifier(&self) -> &str;
fn roles(&self) -> &[String];
}Expand description
Authenticated (or anonymous) principal.
Required Methods§
Sourcefn user_identifier(&self) -> &str
fn user_identifier(&self) -> &str
Stable user identifier (login, UUID, …).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".