pub struct RouteMetadata {
pub method: String,
pub path: String,
pub summary: Option<String>,
pub description: Option<String>,
pub operation_id: Option<String>,
pub tags: Vec<String>,
pub request_schema: Option<String>,
pub response_schemas: HashMap<String, String>,
pub parameters: Vec<ParameterInfo>,
pub security: Vec<String>,
pub deprecated: bool,
}Expand description
Route information for OpenAPI generation
Fields§
§method: StringHTTP method
path: StringPath pattern
summary: Option<String>Operation summary
description: Option<String>Operation description
operation_id: Option<String>Operation ID
Tags for grouping
request_schema: Option<String>Request body schema
response_schemas: HashMap<String, String>Response schemas by status code
parameters: Vec<ParameterInfo>Parameters
security: Vec<String>Security requirements
deprecated: boolDeprecated flag
Trait Implementations§
Source§impl Clone for RouteMetadata
impl Clone for RouteMetadata
Source§fn clone(&self) -> RouteMetadata
fn clone(&self) -> RouteMetadata
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 RouteMetadata
impl RefUnwindSafe for RouteMetadata
impl Send for RouteMetadata
impl Sync for RouteMetadata
impl Unpin for RouteMetadata
impl UnwindSafe for RouteMetadata
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