pub struct PathOperation {
pub path: &'static str,
pub method: &'static str,
pub operation_id: &'static str,
pub summary: &'static str,
pub request_schema: Option<&'static str>,
}
Expand description
Registry for OpenAPI path operations with request schema detection.
This struct represents an OpenAPI path operation that can be registered for automatic documentation generation, including detected JSON payload schemas.
Fields§
§path: &'static str
§method: &'static str
§operation_id: &'static str
§summary: &'static str
§request_schema: Option<&'static str>
Trait Implementations§
impl Collect for PathOperation
Auto Trait Implementations§
impl Freeze for PathOperation
impl RefUnwindSafe for PathOperation
impl Send for PathOperation
impl Sync for PathOperation
impl Unpin for PathOperation
impl UnwindSafe for PathOperation
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more