pub struct OpenAPIConfig {
pub redoc: Option<OpenAPIType>,
pub scalar: Option<OpenAPIType>,
pub swagger: Option<OpenAPIType>,
}Expand description
OpenAPI configuration
Example:
initializers:
openapi:
redoc:
url: /redoc
# spec_json_url: /redoc/openapi.json
# spec_yaml_url: /redoc/openapi.yaml
scalar:
url: /scalar
# spec_json_url: /scalar/openapi.json
# spec_yaml_url: /scalar/openapi.yaml
swagger:
url: /swagger
spec_json_url: /api-docs/openapi.json
# spec_yaml_url: /api-docs/openapi.yamlFields§
§redoc: Option<OpenAPIType>Redoc configuration Example:
initializers:
openapi:
redoc:
url: /redocscalar: Option<OpenAPIType>Scalar configuration Example:
initializers:
openapi:
scalar:
url: /scalarswagger: Option<OpenAPIType>Swagger configuration Example:
initializers:
openapi:
swagger:
url: /swagger
spec_json_url: /openapi.jsonTrait 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 (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 OpenAPIConfig
impl Debug for OpenAPIConfig
Source§impl<'de> Deserialize<'de> for OpenAPIConfig
impl<'de> Deserialize<'de> for OpenAPIConfig
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 OpenAPIConfig
impl RefUnwindSafe for OpenAPIConfig
impl Send for OpenAPIConfig
impl Sync for OpenAPIConfig
impl Unpin for OpenAPIConfig
impl UnsafeUnpin 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