#[non_exhaustive]pub struct SourceIpConditionConfig {
pub values: Option<Vec<String>>,
}
Expand description
Information about a source IP condition.
You can use this condition to route based on the IP address of the source that connects to the load balancer. If a client is behind a proxy, this is the IP address of the proxy not the IP address of the client.
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 source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig
.
The total number of values must be less than, or equal to five.
Implementations§
source§impl SourceIpConditionConfig
impl SourceIpConditionConfig
sourcepub fn values(&self) -> &[String]
pub fn values(&self) -> &[String]
The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig
.
The total number of values must be less than, or equal to five.
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 SourceIpConditionConfig
impl SourceIpConditionConfig
sourcepub fn builder() -> SourceIpConditionConfigBuilder
pub fn builder() -> SourceIpConditionConfigBuilder
Creates a new builder-style object to manufacture SourceIpConditionConfig
.
Trait Implementations§
source§impl Clone for SourceIpConditionConfig
impl Clone for SourceIpConditionConfig
source§fn clone(&self) -> SourceIpConditionConfig
fn clone(&self) -> SourceIpConditionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SourceIpConditionConfig
impl Debug for SourceIpConditionConfig
source§impl PartialEq for SourceIpConditionConfig
impl PartialEq for SourceIpConditionConfig
impl StructuralPartialEq for SourceIpConditionConfig
Auto Trait Implementations§
impl Freeze for SourceIpConditionConfig
impl RefUnwindSafe for SourceIpConditionConfig
impl Send for SourceIpConditionConfig
impl Sync for SourceIpConditionConfig
impl Unpin for SourceIpConditionConfig
impl UnwindSafe for SourceIpConditionConfig
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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