pub struct SwaggerState {
pub spec: Arc<OpenApiSpec>,
pub config: SwaggerConfig,
}Expand description
Application state for the Swagger UI server
Fields§
§spec: Arc<OpenApiSpec>OpenAPI specification
config: SwaggerConfigConfiguration
Trait Implementations§
Source§impl Clone for SwaggerState
impl Clone for SwaggerState
Source§fn clone(&self) -> SwaggerState
fn clone(&self) -> SwaggerState
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 moreAuto Trait Implementations§
impl Freeze for SwaggerState
impl RefUnwindSafe for SwaggerState
impl Send for SwaggerState
impl Sync for SwaggerState
impl Unpin for SwaggerState
impl UnwindSafe for SwaggerState
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