pub struct ConsoleSettings {
pub enabled: Option<bool>,
pub host: Option<String>,
pub path: Option<String>,
}Expand description
Dynamic overrides for the embedded web console mount ([serve.console]). Each
None defers to the file baseline. Making this dynamic lets an operator turn
the console on/off (or move its host/path) fleet-wide with one API write, no
restart. It is a safe operational toggle, not a trust relaxation: the console
is a static, secret-free SPA and the control-plane API it drives stays
token-gated regardless — enabling the mount grants no privilege.
Fields§
§enabled: Option<bool>Serve the console at all (overrides [serve.console] enabled).
host: Option<String>Host(s) the console answers on: * (any), an exact host, or *.suffix.
path: Option<String>URL path prefix it mounts at (default /_console).
Trait Implementations§
Source§impl Clone for ConsoleSettings
impl Clone for ConsoleSettings
Source§fn clone(&self) -> ConsoleSettings
fn clone(&self) -> ConsoleSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConsoleSettings
impl Debug for ConsoleSettings
Source§impl Default for ConsoleSettings
impl Default for ConsoleSettings
Source§fn default() -> ConsoleSettings
fn default() -> ConsoleSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsoleSettingswhere
ConsoleSettings: Default,
impl<'de> Deserialize<'de> for ConsoleSettingswhere
ConsoleSettings: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConsoleSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConsoleSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConsoleSettings
Source§impl PartialEq for ConsoleSettings
impl PartialEq for ConsoleSettings
Source§impl Serialize for ConsoleSettings
impl Serialize for ConsoleSettings
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ConsoleSettings
Auto Trait Implementations§
impl Freeze for ConsoleSettings
impl RefUnwindSafe for ConsoleSettings
impl Send for ConsoleSettings
impl Sync for ConsoleSettings
impl Unpin for ConsoleSettings
impl UnsafeUnpin for ConsoleSettings
impl UnwindSafe for ConsoleSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.