pub struct GroupBuilder { /* private fields */ }
Expand description
Builder for creating route groups with configuration
Implementations§
Source§impl GroupBuilder
impl GroupBuilder
pub fn new(name: &str) -> Self
Sourcepub fn middleware(self, middleware_name: &str) -> Self
pub fn middleware(self, middleware_name: &str) -> Self
Add middleware to the group (placeholder)
Sourcepub fn middlewares(self, middlewares: Vec<String>) -> Self
pub fn middlewares(self, middlewares: Vec<String>) -> Self
Add multiple middlewares
Sourcepub fn build<S>(self, registry: Arc<Mutex<RouteRegistry>>) -> RouteGroup<S>
pub fn build<S>(self, registry: Arc<Mutex<RouteRegistry>>) -> RouteGroup<S>
Build the route group
Auto Trait Implementations§
impl Freeze for GroupBuilder
impl RefUnwindSafe for GroupBuilder
impl Send for GroupBuilder
impl Sync for GroupBuilder
impl Unpin for GroupBuilder
impl UnwindSafe for GroupBuilder
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