pub struct DocsConfig {
pub enabled: bool,
pub path: String,
}Expand description
Embedded MkDocs documentation site ([docs] block).
Enabled by default — when the binary was built with the docs
cargo feature, the site is served at DocsConfig::path out of
the box. Set enabled = false in datasets.toml to suppress it
(e.g. in prod). When the binary was built without the feature,
enabled = true is harmless: the server logs a warning at startup
and skips the mount. The mount path must be a non-trivial sub-path;
reserved API and probe roots are rejected at startup.
Fields§
§enabled: bool§path: StringTrait Implementations§
Source§impl Clone for DocsConfig
impl Clone for DocsConfig
Source§fn clone(&self) -> DocsConfig
fn clone(&self) -> DocsConfig
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 DocsConfig
impl Debug for DocsConfig
Source§impl Default for DocsConfig
impl Default for DocsConfig
Source§impl<'de> Deserialize<'de> for DocsConfigwhere
DocsConfig: Default,
impl<'de> Deserialize<'de> for DocsConfigwhere
DocsConfig: 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 DocsConfig
impl RefUnwindSafe for DocsConfig
impl Send for DocsConfig
impl Sync for DocsConfig
impl Unpin for DocsConfig
impl UnsafeUnpin for DocsConfig
impl UnwindSafe for DocsConfig
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