pub enum OpenAPIType {
Redoc {
url: String,
spec_json_url: Option<String>,
spec_yaml_url: Option<String>,
},
Scalar {
url: String,
spec_json_url: Option<String>,
spec_yaml_url: Option<String>,
},
Swagger {
url: String,
spec_json_url: String,
spec_yaml_url: Option<String>,
},
}Expand description
OpenAPI configuration types
Variants§
Redoc
Redoc configuration Example:
initializers:
openapi:
redoc:
url: /redocFields
Scalar
Scalar configuration Example:
initializers:
openapi:
scalar:
url: /scalarFields
Swagger
Swagger configuration Example:
initializers:
openapi:
swagger:
url: /swagger
spec_json_url: /openapi.jsonTrait Implementations§
Source§impl Clone for OpenAPIType
impl Clone for OpenAPIType
Source§fn clone(&self) -> OpenAPIType
fn clone(&self) -> OpenAPIType
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 OpenAPIType
impl Debug for OpenAPIType
Source§impl<'de> Deserialize<'de> for OpenAPIType
impl<'de> Deserialize<'de> for OpenAPIType
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 OpenAPIType
impl RefUnwindSafe for OpenAPIType
impl Send for OpenAPIType
impl Sync for OpenAPIType
impl Unpin for OpenAPIType
impl UnsafeUnpin for OpenAPIType
impl UnwindSafe for OpenAPIType
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