pub struct OpenApiConfig {
pub title: String,
pub version: String,
pub description: Option<String>,
pub json_path: String,
pub docs_path: String,
}Expand description
Configuration for OpenAPI documentation
Fields§
§title: StringAPI title
version: StringAPI version
description: Option<String>API description
json_path: StringPath to serve OpenAPI JSON
docs_path: StringPath to serve Swagger UI
Implementations§
Trait Implementations§
Source§impl Clone for OpenApiConfig
impl Clone for OpenApiConfig
Source§fn clone(&self) -> OpenApiConfig
fn clone(&self) -> OpenApiConfig
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 OpenApiConfig
impl Debug for OpenApiConfig
Auto Trait Implementations§
impl Freeze for OpenApiConfig
impl RefUnwindSafe for OpenApiConfig
impl Send for OpenApiConfig
impl Sync for OpenApiConfig
impl Unpin for OpenApiConfig
impl UnwindSafe for OpenApiConfig
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