pub struct RouteMatcherBuilder { /* private fields */ }
Expand description
Builder for creating route matchers
Implementations§
Source§impl RouteMatcherBuilder
impl RouteMatcherBuilder
Sourcepub fn route(self, id: String, method: HttpMethod, path: String) -> Self
pub fn route(self, id: String, method: HttpMethod, path: String) -> Self
Add a route to the builder
Sourcepub fn build(self) -> Result<RouteMatcher, RouteMatchError>
pub fn build(self) -> Result<RouteMatcher, RouteMatchError>
Build the route matcher
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouteMatcherBuilder
impl RefUnwindSafe for RouteMatcherBuilder
impl Send for RouteMatcherBuilder
impl Sync for RouteMatcherBuilder
impl Unpin for RouteMatcherBuilder
impl UnwindSafe for RouteMatcherBuilder
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