pub struct RouteInfo {
pub method: String,
pub path: String,
pub operation_id: Option<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub path_params: Vec<String>,
pub query_params: Vec<QueryParamInfo>,
pub request_body_schema: Option<Schema>,
pub responses: HashMap<u16, ResponseInfo>,
pub tags: Vec<String>,
}Expand description
Information about a route extracted from OpenAPI spec
Fields§
§method: StringHTTP method (GET, POST, etc.)
path: StringAPI path (e.g., /users/{id})
operation_id: Option<String>Operation ID from spec
summary: Option<String>Summary from spec
description: Option<String>Description from spec
path_params: Vec<String>Path parameters (e.g., {id} -> [“id”])
query_params: Vec<QueryParamInfo>Query parameters
request_body_schema: Option<Schema>Request body schema (if any)
responses: HashMap<u16, ResponseInfo>Response schemas mapped by status code
Tags for grouping
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouteInfo
impl RefUnwindSafe for RouteInfo
impl Send for RouteInfo
impl Sync for RouteInfo
impl Unpin for RouteInfo
impl UnsafeUnpin for RouteInfo
impl UnwindSafe for RouteInfo
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