pub struct RouterRoute {
pub method: Method,
pub path: String,
pub tags: Vec<String>,
pub dependencies: Vec<RouterDependency>,
pub deprecated: Option<bool>,
pub include_in_schema: bool,
/* private fields */
}Expand description
Internal route storage that includes router-level metadata.
Fields§
§method: MethodThe HTTP method.
path: StringThe path (without prefix).
Route-specific tags (merged with router tags).
dependencies: Vec<RouterDependency>Route-specific dependencies (run after router dependencies).
deprecated: Option<bool>Whether this route is deprecated.
include_in_schema: boolWhether to include in OpenAPI schema.
Trait Implementations§
Source§impl Clone for RouterRoute
impl Clone for RouterRoute
Source§fn clone(&self) -> RouterRoute
fn clone(&self) -> RouterRoute
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 RouterRoute
impl !RefUnwindSafe for RouterRoute
impl Send for RouterRoute
impl Sync for RouterRoute
impl Unpin for RouterRoute
impl !UnwindSafe for RouterRoute
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).