Struct rocket_okapi_fork::gen::OpenApiGenerator [−][src]
pub struct OpenApiGenerator { /* fields omitted */ }
Expand description
A struct that visits all rocket::Route
s, and aggregates information about them.
Implementations
Create a new OpenApiGenerator
from the settings provided.
Adds a security scheme to the generated output
Add a new HTTP Method
to the collection of endpoints in the OpenApiGenerator
.
Returns a JSON Schema object for the type T
.
Obtain the internal SchemaGenerator
object.
Return the component definition/schema of an object without any references.
Generate an OpenApi
specification for all added operations.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for OpenApiGenerator
impl !Send for OpenApiGenerator
impl !Sync for OpenApiGenerator
impl Unpin for OpenApiGenerator
impl !UnwindSafe for OpenApiGenerator
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.