#[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 ==
.impl StructuralPartialEq for QueryStringConditionConfig
Auto Trait Implementations§
impl Freeze for QueryStringConditionConfig
impl RefUnwindSafe for QueryStringConditionConfig
impl Send for QueryStringConditionConfig
impl Sync for QueryStringConditionConfig
impl Unpin for QueryStringConditionConfig
impl UnwindSafe for QueryStringConditionConfig
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> 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