pub struct RouteInfo {
pub path: String,
pub method: HttpMethod,
pub handler_name: String,
pub parameters: Vec<Parameter>,
pub request_body: Option<TypeInfo>,
pub response_type: Option<TypeInfo>,
}Expand description
Complete information about a single API endpoint.
This structure contains all the metadata needed to generate an OpenAPI operation, including the path, HTTP method, parameters, and request/response types.
Fields§
§path: StringThe URL path pattern (e.g., “/users/:id” or “/users/{id}”)
method: HttpMethodThe HTTP method for this route
handler_name: StringThe name of the handler function
parameters: Vec<Parameter>List of parameters extracted from the handler signature
request_body: Option<TypeInfo>Type information for the request body, if present
response_type: Option<TypeInfo>Type information for the response, if it can be determined
Implementations§
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 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