pub struct RouteResponse {
pub status: u16,
pub schema_name: String,
pub description: String,
pub content_type: String,
}Expand description
Response declaration for OpenAPI documentation.
Describes a possible response from a route, including status code, schema type, and description.
Fields§
§status: u16HTTP status code (e.g., 200, 201, 404).
schema_name: StringSchema type name for the response body (e.g., “User”, “Vec<Item>”).
description: StringDescription of when this response is returned.
content_type: StringContent type for the response (defaults to “application/json”).
Implementations§
Trait Implementations§
Source§impl Clone for RouteResponse
impl Clone for RouteResponse
Source§fn clone(&self) -> RouteResponse
fn clone(&self) -> RouteResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 RouteResponse
impl RefUnwindSafe for RouteResponse
impl Send for RouteResponse
impl Sync for RouteResponse
impl Unpin for RouteResponse
impl UnwindSafe for RouteResponse
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).