#[non_exhaustive]pub struct VirtualGatewayClientPolicyTls {
pub enforce: Option<bool>,
pub ports: Option<Vec<i32>>,
pub certificate: Option<VirtualGatewayClientTlsCertificate>,
pub validation: Option<VirtualGatewayTlsValidationContext>,
}
Expand description
An object that represents a Transport Layer Security (TLS) client policy.
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.enforce: Option<bool>
Whether the policy is enforced. The default is True
, if a value isn't specified.
ports: Option<Vec<i32>>
One or more ports that the policy is enforced for.
certificate: Option<VirtualGatewayClientTlsCertificate>
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
validation: Option<VirtualGatewayTlsValidationContext>
A reference to an object that represents a Transport Layer Security (TLS) validation context.
Implementations§
source§impl VirtualGatewayClientPolicyTls
impl VirtualGatewayClientPolicyTls
sourcepub fn enforce(&self) -> Option<bool>
pub fn enforce(&self) -> Option<bool>
Whether the policy is enforced. The default is True
, if a value isn't specified.
sourcepub fn ports(&self) -> &[i32]
pub fn ports(&self) -> &[i32]
One or more ports that the policy is enforced for.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ports.is_none()
.
sourcepub fn certificate(&self) -> Option<&VirtualGatewayClientTlsCertificate>
pub fn certificate(&self) -> Option<&VirtualGatewayClientTlsCertificate>
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
sourcepub fn validation(&self) -> Option<&VirtualGatewayTlsValidationContext>
pub fn validation(&self) -> Option<&VirtualGatewayTlsValidationContext>
A reference to an object that represents a Transport Layer Security (TLS) validation context.
source§impl VirtualGatewayClientPolicyTls
impl VirtualGatewayClientPolicyTls
sourcepub fn builder() -> VirtualGatewayClientPolicyTlsBuilder
pub fn builder() -> VirtualGatewayClientPolicyTlsBuilder
Creates a new builder-style object to manufacture VirtualGatewayClientPolicyTls
.
Trait Implementations§
source§impl Clone for VirtualGatewayClientPolicyTls
impl Clone for VirtualGatewayClientPolicyTls
source§fn clone(&self) -> VirtualGatewayClientPolicyTls
fn clone(&self) -> VirtualGatewayClientPolicyTls
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for VirtualGatewayClientPolicyTls
impl PartialEq for VirtualGatewayClientPolicyTls
source§fn eq(&self, other: &VirtualGatewayClientPolicyTls) -> bool
fn eq(&self, other: &VirtualGatewayClientPolicyTls) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualGatewayClientPolicyTls
Auto Trait Implementations§
impl Freeze for VirtualGatewayClientPolicyTls
impl RefUnwindSafe for VirtualGatewayClientPolicyTls
impl Send for VirtualGatewayClientPolicyTls
impl Sync for VirtualGatewayClientPolicyTls
impl Unpin for VirtualGatewayClientPolicyTls
impl UnwindSafe for VirtualGatewayClientPolicyTls
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