#[non_exhaustive]pub struct HostHeaderConditionConfig {
pub values: Option<Vec<String>>,
}
Expand description
Information about a host header condition.
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<String>>
The host names. The maximum size of each name is 128 characters. The comparison is case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If you specify multiple strings, the condition is satisfied if one of the strings matches the host name.
Implementations§
source§impl HostHeaderConditionConfig
impl HostHeaderConditionConfig
sourcepub fn values(&self) -> &[String]
pub fn values(&self) -> &[String]
The host names. The maximum size of each name is 128 characters. The comparison is case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If you specify multiple strings, the condition is satisfied if one of the strings matches the host name.
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 HostHeaderConditionConfig
impl HostHeaderConditionConfig
sourcepub fn builder() -> HostHeaderConditionConfigBuilder
pub fn builder() -> HostHeaderConditionConfigBuilder
Creates a new builder-style object to manufacture HostHeaderConditionConfig
.
Trait Implementations§
source§impl Clone for HostHeaderConditionConfig
impl Clone for HostHeaderConditionConfig
source§fn clone(&self) -> HostHeaderConditionConfig
fn clone(&self) -> HostHeaderConditionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HostHeaderConditionConfig
impl Debug for HostHeaderConditionConfig
source§impl PartialEq for HostHeaderConditionConfig
impl PartialEq for HostHeaderConditionConfig
source§fn eq(&self, other: &HostHeaderConditionConfig) -> bool
fn eq(&self, other: &HostHeaderConditionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HostHeaderConditionConfig
Auto Trait Implementations§
impl Freeze for HostHeaderConditionConfig
impl RefUnwindSafe for HostHeaderConditionConfig
impl Send for HostHeaderConditionConfig
impl Sync for HostHeaderConditionConfig
impl Unpin for HostHeaderConditionConfig
impl UnwindSafe for HostHeaderConditionConfig
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