Struct spacegate_kernel::config::http_route_dto::SgHttpQueryMatch
source · pub struct SgHttpQueryMatch {
pub kind: SgHttpQueryMatchType,
pub name: String,
pub value: String,
}Expand description
HTTPQueryMatch describes how to select a HTTP route by matching HTTP query parameters.
Fields§
§kind: SgHttpQueryMatchTypeType specifies how to match against the value of the query parameter.
name: StringName is the name of the HTTP query param to be matched. This must be an exact string match. (See https://tools.ietf.org/html/rfc7230#section-2.7.3).
value: StringValue is the value of HTTP query param to be matched.
Trait Implementations§
source§impl Clone for SgHttpQueryMatch
impl Clone for SgHttpQueryMatch
source§fn clone(&self) -> SgHttpQueryMatch
fn clone(&self) -> SgHttpQueryMatch
Returns a copy 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 SgHttpQueryMatch
impl Debug for SgHttpQueryMatch
source§impl Default for SgHttpQueryMatch
impl Default for SgHttpQueryMatch
source§fn default() -> SgHttpQueryMatch
fn default() -> SgHttpQueryMatch
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SgHttpQueryMatch
impl<'de> Deserialize<'de> for SgHttpQueryMatch
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
Auto Trait Implementations§
impl RefUnwindSafe for SgHttpQueryMatch
impl Send for SgHttpQueryMatch
impl Sync for SgHttpQueryMatch
impl Unpin for SgHttpQueryMatch
impl UnwindSafe for SgHttpQueryMatch
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