pub struct HttpRouteMatchPath {
pub value: String,
pub rewrite: Option<String>,
pub type: Type,
}Expand description
HttpRouteMatchPath : Path to match for routing.
Fields§
§value: StringUri path to match for request.
rewrite: Option<String>replacement string for matched part of the Uri.
type: Typehow to match value in the Uri
Implementations§
Source§impl HttpRouteMatchPath
impl HttpRouteMatchPath
Sourcepub fn new(value: String, type: Type) -> HttpRouteMatchPath
pub fn new(value: String, type: Type) -> HttpRouteMatchPath
Path to match for routing.
Trait Implementations§
Source§impl Clone for HttpRouteMatchPath
impl Clone for HttpRouteMatchPath
Source§impl Debug for HttpRouteMatchPath
impl Debug for HttpRouteMatchPath
Source§impl Default for HttpRouteMatchPath
impl Default for HttpRouteMatchPath
Source§impl<'de> Deserialize<'de> for HttpRouteMatchPath
impl<'de> Deserialize<'de> for HttpRouteMatchPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HttpRouteMatchPath
impl PartialEq for HttpRouteMatchPath
Source§impl Serialize for HttpRouteMatchPath
impl Serialize for HttpRouteMatchPath
impl StructuralPartialEq for HttpRouteMatchPath
Auto Trait Implementations§
impl Freeze for HttpRouteMatchPath
impl RefUnwindSafe for HttpRouteMatchPath
impl Send for HttpRouteMatchPath
impl Sync for HttpRouteMatchPath
impl Unpin for HttpRouteMatchPath
impl UnsafeUnpin for HttpRouteMatchPath
impl UnwindSafe for HttpRouteMatchPath
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