pub struct Doc { /* private fields */ }Expand description
Per-route OpenAPI annotations stored in route meta.
Implementations§
Source§impl Doc
impl Doc
pub fn new() -> Self
pub fn is_skip(&self) -> bool
pub fn body_schema(self, schema: Value) -> Self
pub fn query_schema(self, schema: Value) -> Self
pub fn params_schema(self, schema: Value) -> Self
pub fn ok_schema(self, schema: Value) -> Self
pub fn created_schema(self, schema: Value) -> Self
pub fn response(self, status: u16, schema: Value) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Doc
impl RefUnwindSafe for Doc
impl Send for Doc
impl Sync for Doc
impl Unpin for Doc
impl UnsafeUnpin for Doc
impl UnwindSafe for Doc
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