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: 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). 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: StringValue 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<'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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more