pub struct WebUIMountConfig {
pub ui_path: String,
pub auth: Option<WebUIAuth>,
pub session_secret: Option<Vec<u8>>,
pub cookie_secure: bool,
}Expand description
Mount-only configuration: base path and session/auth options.
Host, port, and TLS are defined by your application when you bind the server.
With the Axum integration, nest the returned router at Self::ui_path (normalized, e.g.
/dashboard), or merge at / when Self::ui_path is "/".
Fields§
§ui_path: StringBase path for the UI (e.g. /dashboard, /admin/queues). Use / only if the dashboard
is the only consumer of those paths on this router.
auth: Option<WebUIAuth>When Some, the dashboard requires login (HttpOnly session cookie).
session_secret: Option<Vec<u8>>Master key used to sign the session cookie.
Accepts exactly 32 bytes (expanded by cookie key derivation) or 64 bytes (used directly).
If None while Self::auth is Some, a fixed development key is used.
Secure flag on the session cookie (use true behind HTTPS).
Trait Implementations§
Source§impl Clone for WebUIMountConfig
impl Clone for WebUIMountConfig
Source§fn clone(&self) -> WebUIMountConfig
fn clone(&self) -> WebUIMountConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WebUIMountConfig
impl RefUnwindSafe for WebUIMountConfig
impl Send for WebUIMountConfig
impl Sync for WebUIMountConfig
impl Unpin for WebUIMountConfig
impl UnsafeUnpin for WebUIMountConfig
impl UnwindSafe for WebUIMountConfig
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