pub struct HttpTriggerMatcher { /* private fields */ }Expand description
Matcher for efficiently finding HTTP trigger routes.
Supports path parameter extraction and pattern matching.
Implementations§
Source§impl HttpTriggerMatcher
impl HttpTriggerMatcher
Sourcepub fn add(&mut self, route: HttpTriggerRoute)
pub fn add(&mut self, route: HttpTriggerRoute)
Add a route to the matcher.
Sourcepub fn find(&self, method: &str, path: &str) -> Option<HttpTriggerRoute>
pub fn find(&self, method: &str, path: &str) -> Option<HttpTriggerRoute>
Find a matching route for the given method and path.
Sourcepub fn routes(&self) -> &[HttpTriggerRoute]
pub fn routes(&self) -> &[HttpTriggerRoute]
Get all routes.
Trait Implementations§
Source§impl Clone for HttpTriggerMatcher
impl Clone for HttpTriggerMatcher
Source§fn clone(&self) -> HttpTriggerMatcher
fn clone(&self) -> HttpTriggerMatcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpTriggerMatcher
impl Debug for HttpTriggerMatcher
Source§impl Default for HttpTriggerMatcher
impl Default for HttpTriggerMatcher
Source§fn default() -> HttpTriggerMatcher
fn default() -> HttpTriggerMatcher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpTriggerMatcher
impl RefUnwindSafe for HttpTriggerMatcher
impl Send for HttpTriggerMatcher
impl Sync for HttpTriggerMatcher
impl Unpin for HttpTriggerMatcher
impl UnsafeUnpin for HttpTriggerMatcher
impl UnwindSafe for HttpTriggerMatcher
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