#[non_exhaustive]pub struct QueryStringConditionConfig {
pub values: Option<Vec<QueryStringKeyValuePair>>,
}
Expand description
Information about a query string condition.
The query string component of a URI starts after the first '?' character and is terminated by either a '#' character or the end of the URI. A typical query string contains key/value pairs separated by '&' characters. The allowed characters are specified by RFC 3986. Any character can be percentage encoded.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.values: Option<Vec<QueryStringKeyValuePair>>
The key/value pairs or values to find in the query string. The maximum size of each string is 128 characters. The comparison is case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, you must escape these characters in Values
using a '\' character.
If you specify multiple key/value pairs or values, the condition is satisfied if one of them is found in the query string.
Implementations§
source§impl QueryStringConditionConfig
impl QueryStringConditionConfig
sourcepub fn values(&self) -> &[QueryStringKeyValuePair]
pub fn values(&self) -> &[QueryStringKeyValuePair]
The key/value pairs or values to find in the query string. The maximum size of each string is 128 characters. The comparison is case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, you must escape these characters in Values
using a '\' character.
If you specify multiple key/value pairs or values, the condition is satisfied if one of them is found in the query string.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values.is_none()
.
source§impl QueryStringConditionConfig
impl QueryStringConditionConfig
sourcepub fn builder() -> QueryStringConditionConfigBuilder
pub fn builder() -> QueryStringConditionConfigBuilder
Creates a new builder-style object to manufacture QueryStringConditionConfig
.
Trait Implementations§
source§impl Clone for QueryStringConditionConfig
impl Clone for QueryStringConditionConfig
source§fn clone(&self) -> QueryStringConditionConfig
fn clone(&self) -> QueryStringConditionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryStringConditionConfig
impl Debug for QueryStringConditionConfig
source§impl PartialEq for QueryStringConditionConfig
impl PartialEq for QueryStringConditionConfig
source§fn eq(&self, other: &QueryStringConditionConfig) -> bool
fn eq(&self, other: &QueryStringConditionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.