pub struct Operation {
pub summary: Option<&'static str>,
pub tag: Option<&'static str>,
pub body: Option<SchemaFn>,
pub responses: Vec<ResponseSpec>,
}Expand description
What #[openapi(..)] records about one action.
Fields§
§summary: Option<&'static str>§tag: Option<&'static str>§body: Option<SchemaFn>§responses: Vec<ResponseSpec>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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