pub struct DashboardConfig {
pub bind_address: SocketAddr,
pub enable_cors: bool,
pub storage_path: String,
pub max_page_size: usize,
pub default_page_size: usize,
pub cache_size_mb: usize,
pub auto_refresh_interval_secs: u64,
pub otlp_grpc_port: u16,
pub otlp_http_port: u16,
}Expand description
Configuration for the dashboard server
Fields§
§bind_address: SocketAddrAddress to bind the dashboard server to
enable_cors: boolEnable CORS (for development)
storage_path: StringPath to storage database
max_page_size: usizeMaximum number of items to return per page
default_page_size: usizeDefault page size for queries
cache_size_mb: usizeCache size in MB for query results
auto_refresh_interval_secs: u64Auto-refresh interval in seconds (0 = disabled)
otlp_grpc_port: u16OTLP gRPC receiver port (shown in the web UI status popover)
otlp_http_port: u16OTLP HTTP receiver port (shown in the web UI status popover)
Implementations§
Source§impl DashboardConfig
impl DashboardConfig
Sourcepub fn with_bind_address(self, addr: SocketAddr) -> Self
pub fn with_bind_address(self, addr: SocketAddr) -> Self
Create a new configuration with custom bind address
Sourcepub fn with_storage_path(self, path: impl Into<String>) -> Self
pub fn with_storage_path(self, path: impl Into<String>) -> Self
Set storage path
Sourcepub fn with_otlp_ports(self, grpc_port: u16, http_port: u16) -> Self
pub fn with_otlp_ports(self, grpc_port: u16, http_port: u16) -> Self
Set the OTLP receiver ports (shown in the web UI status popover)
Trait Implementations§
Source§impl Clone for DashboardConfig
impl Clone for DashboardConfig
Source§impl Debug for DashboardConfig
impl Debug for DashboardConfig
Source§impl Default for DashboardConfig
impl Default for DashboardConfig
Source§impl<'de> Deserialize<'de> for DashboardConfig
impl<'de> Deserialize<'de> for DashboardConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DashboardConfig
impl RefUnwindSafe for DashboardConfig
impl Send for DashboardConfig
impl Sync for DashboardConfig
impl Unpin for DashboardConfig
impl UnsafeUnpin 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