Struct actix_router::RouterBuilder
source · [−]pub struct RouterBuilder<T, U = ()> { /* private fields */ }
Expand description
Builder for an ordered routing list.
Implementations
Convenience methods provided when context data impls Default
pub fn path(
&mut self,
path: impl IntoPatterns,
val: T
) -> (&mut ResourceDef, &mut T, &mut U)
pub fn path(
&mut self,
path: impl IntoPatterns,
val: T
) -> (&mut ResourceDef, &mut T, &mut U)
Registers resource for specified path.
pub fn prefix(
&mut self,
prefix: impl IntoPatterns,
val: T
) -> (&mut ResourceDef, &mut T, &mut U)
pub fn prefix(
&mut self,
prefix: impl IntoPatterns,
val: T
) -> (&mut ResourceDef, &mut T, &mut U)
Registers resource for specified path prefix.
Registers resource for ResourceDef
.