pub enum QueryParamMatch {
RegularExpression {
name: String,
value: Regex,
},
Exact {
name: String,
value: String,
},
}
Expand description
Describes how to select a HTTP route by matching HTTP query parameters.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for QueryParamMatch
impl Clone for QueryParamMatch
Source§fn clone(&self) -> QueryParamMatch
fn clone(&self) -> QueryParamMatch
Returns a duplicate of the value. Read more
1.0.0 · 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 QueryParamMatch
impl Debug for QueryParamMatch
Source§impl<'de> Deserialize<'de> for QueryParamMatch
impl<'de> Deserialize<'de> for QueryParamMatch
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 QueryParamMatch
impl PartialEq for QueryParamMatch
Source§impl Serialize for QueryParamMatch
impl Serialize for QueryParamMatch
impl Eq for QueryParamMatch
impl StructuralPartialEq for QueryParamMatch
Auto Trait Implementations§
impl Freeze for QueryParamMatch
impl RefUnwindSafe for QueryParamMatch
impl Send for QueryParamMatch
impl Sync for QueryParamMatch
impl Unpin for QueryParamMatch
impl UnwindSafe for QueryParamMatch
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