[−][src]Struct rocket_okapi::gen::OpenApiGenerator
A struct that visits all rocket::Route
s, and aggregates information about them.
Implementations
impl OpenApiGenerator
[src]
pub fn new(settings: OpenApiSettings) -> Self
[src]
Create a new OpenApiGenerator
from the settings provided.
pub fn add_operation(&mut self, op: OperationInfo)
[src]
Add a new HTTP Method
to the collection of endpoints in the OpenApiGenerator
.
pub fn json_schema<T: ?Sized + JsonSchema>(&mut self) -> SchemaObject
[src]
Returns a JSON Schema object for the type T
.
pub fn schema_generator(&self) -> &SchemaGenerator
[src]
Obtain the internal SchemaGenerator
object.
pub fn json_schema_no_ref<T: ?Sized + JsonSchema>(&mut self) -> SchemaObject
[src]
Return the component definition/schema of an object without any references.
pub fn into_openapi(self) -> OpenApi
[src]
Generate an OpenApi
specification for all added operations.
Trait Implementations
impl Clone for OpenApiGenerator
[src]
fn clone(&self) -> OpenApiGenerator
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OpenApiGenerator
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,