pub struct MiddlewareInfo {
pub name: String,
pub route_specific: bool,
pub order: usize,
}Expand description
Information about middleware that will be applied.
Fields§
§name: StringMiddleware name.
route_specific: boolWhether this middleware is route-specific.
order: usizeOrder in the middleware stack.
Implementations§
Trait Implementations§
Source§impl Clone for MiddlewareInfo
impl Clone for MiddlewareInfo
Source§fn clone(&self) -> MiddlewareInfo
fn clone(&self) -> MiddlewareInfo
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 MiddlewareInfo
impl RefUnwindSafe for MiddlewareInfo
impl Send for MiddlewareInfo
impl Sync for MiddlewareInfo
impl Unpin for MiddlewareInfo
impl UnwindSafe for MiddlewareInfo
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