pub struct ApiDefinition<S: Into<String> + Clone> {
pub uri_prefix: S,
pub api_definition: OpenApiSource<S>,
pub title: Option<S>,
}
Expand description
Configuration for the API definition
Fields§
§uri_prefix: S
URI prefix used for all Axum routes
api_definition: OpenApiSource<S>
OpenAPI definition given, either inline of as URL reference
title: Option<S>
Optional title of the API, defaults to SwaggerUI
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for ApiDefinition<S>where
S: Freeze,
impl<S> RefUnwindSafe for ApiDefinition<S>where
S: RefUnwindSafe,
impl<S> Send for ApiDefinition<S>where
S: Send,
impl<S> Sync for ApiDefinition<S>where
S: Sync,
impl<S> Unpin for ApiDefinition<S>where
S: Unpin,
impl<S> UnwindSafe for ApiDefinition<S>where
S: UnwindSafe,
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