pub struct AdminConfig {
pub enabled: bool,
pub port: u16,
pub host: String,
pub auth_required: bool,
pub username: Option<String>,
pub password: Option<String>,
pub mount_path: Option<String>,
pub api_enabled: bool,
pub prometheus_url: String,
}Expand description
Admin UI configuration
Fields§
§enabled: boolEnable admin UI
port: u16Admin UI port
host: StringHost address
auth_required: boolAuthentication required
username: Option<String>Admin username (if auth required)
password: Option<String>Admin password (if auth required)
mount_path: Option<String>Optional mount path to embed Admin UI under HTTP server (e.g., “/admin”)
api_enabled: boolEnable Admin API endpoints (under __mockforge)
prometheus_url: StringPrometheus server URL for analytics queries
Trait Implementations§
Source§impl Clone for AdminConfig
impl Clone for AdminConfig
Source§fn clone(&self) -> AdminConfig
fn clone(&self) -> AdminConfig
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 AdminConfig
impl Debug for AdminConfig
Source§impl Default for AdminConfig
impl Default for AdminConfig
Source§impl<'de> Deserialize<'de> for AdminConfigwhere
AdminConfig: Default,
impl<'de> Deserialize<'de> for AdminConfigwhere
AdminConfig: Default,
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 AdminConfig
impl RefUnwindSafe for AdminConfig
impl Send for AdminConfig
impl Sync for AdminConfig
impl Unpin for AdminConfig
impl UnwindSafe for AdminConfig
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