pub struct DashboardConfig {
pub bind_address: SocketAddr,
pub enable_auth: bool,
pub access_tokens: Vec<String>,
pub enable_cors: bool,
pub cors_origins: Vec<String>,
pub enable_websocket: bool,
pub websocket_update_interval: Duration,
pub max_websocket_connections: usize,
}
Expand description
Configuration for the dashboard server
Fields§
§bind_address: SocketAddr
Server bind address
enable_auth: bool
Enable authentication for dashboard access
access_tokens: Vec<String>
Dashboard access tokens
enable_cors: bool
Enable CORS
cors_origins: Vec<String>
CORS allowed origins
enable_websocket: bool
Enable real-time WebSocket updates
websocket_update_interval: Duration
WebSocket update interval
max_websocket_connections: usize
Maximum concurrent WebSocket connections
Trait Implementations§
Source§impl Clone for DashboardConfig
impl Clone for DashboardConfig
Source§fn clone(&self) -> DashboardConfig
fn clone(&self) -> DashboardConfig
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 moreSource§impl Debug for DashboardConfig
impl Debug for DashboardConfig
Auto Trait Implementations§
impl Freeze for DashboardConfig
impl RefUnwindSafe for DashboardConfig
impl Send for DashboardConfig
impl Sync for DashboardConfig
impl Unpin for DashboardConfig
impl UnwindSafe for DashboardConfig
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