pub struct HTTPRouteRulesMatchesQueryParams {
pub name: String,
pub type: Option<HTTPRouteRulesMatchesQueryParamsType>,
pub value: String,
}
Expand description
HTTPQueryParamMatch describes how to select a HTTP route by matching HTTP query parameters.
Fields§
§name: String
Name 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).
If multiple entries specify equivalent query param names, only the first entry with an equivalent name MUST be considered for a match. Subsequent entries with an equivalent query param name MUST be ignored.
If a query param is repeated in an HTTP request, the behavior is purposely left undefined, since different data planes have different capabilities. However, it is recommended that implementations should match against the first value of the param if the data plane supports it, as this behavior is expected in other load balancing contexts outside of the Gateway API.
Users SHOULD NOT route traffic based on repeated query params to guard themselves against potential differences in the implementations.
type: Option<HTTPRouteRulesMatchesQueryParamsType>
Type specifies how to match against the value of the query parameter.
Support: Extended (Exact)
Support: Implementation-specific (RegularExpression)
Since RegularExpression QueryParamMatchType has Implementation-specific conformance, implementations can support POSIX, PCRE or any other dialects of regular expressions. Please read the implementation’s documentation to determine the supported dialect.
value: String
Value is the value of HTTP query param to be matched.
Trait Implementations§
Source§impl Clone for HTTPRouteRulesMatchesQueryParams
impl Clone for HTTPRouteRulesMatchesQueryParams
Source§fn clone(&self) -> HTTPRouteRulesMatchesQueryParams
fn clone(&self) -> HTTPRouteRulesMatchesQueryParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for HTTPRouteRulesMatchesQueryParams
impl Default for HTTPRouteRulesMatchesQueryParams
Source§fn default() -> HTTPRouteRulesMatchesQueryParams
fn default() -> HTTPRouteRulesMatchesQueryParams
Source§impl<'de> Deserialize<'de> for HTTPRouteRulesMatchesQueryParams
impl<'de> Deserialize<'de> for HTTPRouteRulesMatchesQueryParams
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>,
Source§impl JsonSchema for HTTPRouteRulesMatchesQueryParams
impl JsonSchema for HTTPRouteRulesMatchesQueryParams
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for HTTPRouteRulesMatchesQueryParams
impl PartialEq for HTTPRouteRulesMatchesQueryParams
Source§fn eq(&self, other: &HTTPRouteRulesMatchesQueryParams) -> bool
fn eq(&self, other: &HTTPRouteRulesMatchesQueryParams) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for HTTPRouteRulesMatchesQueryParams
Auto Trait Implementations§
impl Freeze for HTTPRouteRulesMatchesQueryParams
impl RefUnwindSafe for HTTPRouteRulesMatchesQueryParams
impl Send for HTTPRouteRulesMatchesQueryParams
impl Sync for HTTPRouteRulesMatchesQueryParams
impl Unpin for HTTPRouteRulesMatchesQueryParams
impl UnwindSafe for HTTPRouteRulesMatchesQueryParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more