pub struct Router {
pub path: String,
pub route: Route,
pub checker: Option<Rc<dyn Checker>>,
pub csrf: CSRFType,
}Available on crate feature
router only.Expand description
A route entry for build_router.
Fields§
§path: StringRoute path registered on the scope.
route: RouteActix-web route (method + handler).
checker: Option<Rc<dyn Checker>>Auth checker; None skips the auth check for this route.
csrf: CSRFTypeAvailable on crate feature
csrf only.CSRF enforcement level for this route.
Auto Trait Implementations§
impl !RefUnwindSafe for Router
impl !Send for Router
impl !Sync for Router
impl !UnwindSafe for Router
impl Freeze for Router
impl Unpin for Router
impl UnsafeUnpin for Router
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