pub struct RouteMetadata {
pub method: String,
pub path: String,
pub handler_name: String,
pub description: String,
pub tags: Vec<String>,
pub input_schema: Value,
pub output_schema: Value,
pub documentation: Option<String>,
}Expand description
Metadata for a single Axum route, used for scanning.
Fields§
§method: StringHTTP method (GET, POST, PUT, DELETE, PATCH).
path: StringURL path (e.g., “/api/users/:id”).
handler_name: StringHandler function name or target string.
description: StringHuman-readable description.
Tags for grouping.
input_schema: ValueJSON Schema for inputs.
output_schema: ValueJSON Schema for outputs.
documentation: Option<String>Optional full documentation.
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 UnsafeUnpin 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