pub struct ApiResponse {
pub status: u16,
pub description: &'static str,
pub json_type: Option<&'static str>,
pub schema: Option<Value>,
}Expand description
Documentation attached to one declared controller response.
Fields§
§status: u16HTTP response status.
description: &'static strHuman-readable response description.
json_type: Option<&'static str>Rust DTO name for a JSON response, if declared.
schema: Option<Value>JSON Schema describing the response payload.
Trait Implementations§
Source§impl Clone for ApiResponse
impl Clone for ApiResponse
Source§impl Debug for ApiResponse
impl Debug for ApiResponse
Auto Trait Implementations§
impl Freeze for ApiResponse
impl RefUnwindSafe for ApiResponse
impl Send for ApiResponse
impl Sync for ApiResponse
impl Unpin for ApiResponse
impl UnsafeUnpin for ApiResponse
impl UnwindSafe for ApiResponse
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