pub enum OpenApiSource<S: Into<String>> {
Inline(S),
InlineWithName {
definition: S,
uri: S,
},
Uri(S),
}
Expand description
Provide the OpenAPi Spec either Inline or as Url
Variants§
Inline(S)
generates the OpenAPI location at {uri_prefix}/openapi.yaml
InlineWithName
generates the OpenAPI location at the given URI
Fields
§
definition: S
OpenAPI definition as String
§
uri: S
OpenAPI URI that is used to expose the definition
Uri(S)
uses the given the OpenAPI location
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for OpenApiSource<S>where
S: Freeze,
impl<S> RefUnwindSafe for OpenApiSource<S>where
S: RefUnwindSafe,
impl<S> Send for OpenApiSource<S>where
S: Send,
impl<S> Sync for OpenApiSource<S>where
S: Sync,
impl<S> Unpin for OpenApiSource<S>where
S: Unpin,
impl<S> UnwindSafe for OpenApiSource<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