pub struct DocsConfig {
pub enabled: bool,
pub path: String,
pub title: Option<String>,
}Expand description
Interactive API documentation (OpenAPI spec + Swagger UI).
Fields§
§enabled: boolServe the OpenAPI spec and Swagger UI (default true).
path: StringPath (under base_path) the Swagger UI is served at.
title: Option<String>Title shown in the UI and the spec’s info.title. Unset falls back to
the app’s name — see App::docs_title — so an
app that renames itself renames its docs too.
Trait 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