pub struct ResponseInfo {
pub status_code: u16,
pub description: Option<String>,
pub schema: Option<Schema>,
pub example: Option<Value>,
}Expand description
Response information
Fields§
§status_code: u16HTTP status code
description: Option<String>Response description
schema: Option<Schema>Response schema (if any)
example: Option<Value>Example response (if any)
Trait Implementations§
Source§impl Clone for ResponseInfo
impl Clone for ResponseInfo
Source§fn clone(&self) -> ResponseInfo
fn clone(&self) -> ResponseInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResponseInfo
impl RefUnwindSafe for ResponseInfo
impl Send for ResponseInfo
impl Sync for ResponseInfo
impl Unpin for ResponseInfo
impl UnsafeUnpin for ResponseInfo
impl UnwindSafe for ResponseInfo
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