pub struct Auth(/* private fields */);Expand description
The panel’s authentication configuration (ADR-0013).
The default is Auth::password; Auth::custom installs an app-owned
Authenticator; Auth::disabled is the explicit fail-open opt-out.
Implementations§
Source§impl Auth
impl Auth
Sourcepub fn custom(authenticator: impl Authenticator) -> Self
pub fn custom(authenticator: impl Authenticator) -> Self
An app-owned authenticator over its own user table.
Sourcepub fn disabled() -> Self
pub fn disabled() -> Self
Explicit fail-open opt-out for public demos (ADR-0013): no gate, no login routes, sessions unused.
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Whether the explicit opt-out is set.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Auth
impl !UnwindSafe for Auth
impl Freeze for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnsafeUnpin for Auth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more