pub struct AdminConfig {
pub enabled: bool,
pub path: String,
pub logo: Option<String>,
}Expand description
The built-in admin dashboard, served from the binary itself.
Every app gets one, and there is only one: the interface is embedded in
apiplant and its manifest is derived from the app on boot. Turn it off for
a deployment that shouldn’t expose an operator console at all — an app that
wants its own can serve one from public/ like any other page.
Fields§
§enabled: boolServe the admin dashboard (default true).
path: StringPath the dashboard is served at, outside base_path.
logo: Option<String>Image shown in place of the apiplant mark, as a URL the browser can
fetch — usually a file in public/. Unset keeps the apiplant mark.
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 (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 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 UnsafeUnpin 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