#[non_exhaustive]pub struct ValidationCA {
pub type: Option<Type>,
/* private fields */
}Expand description
Specification of ValidationCA. Defines the mechanism to obtain the Certificate Authority certificate to validate the peer certificate.
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.type: Option<Type>The type of certificate provider which provides the CA certificate.
Implementations§
Source§impl ValidationCA
impl ValidationCA
pub fn new() -> Self
Sourcepub fn set_type<T: Into<Option<Type>>>(self, v: T) -> Self
pub fn set_type<T: Into<Option<Type>>>(self, v: T) -> Self
Sets the value of r#type.
Note that all the setters affecting r#type are mutually
exclusive.
Sourcepub fn grpc_endpoint(&self) -> Option<&Box<GrpcEndpoint>>
pub fn grpc_endpoint(&self) -> Option<&Box<GrpcEndpoint>>
The value of [r#type][crate::model::ValidationCA::r#type]
if it holds a GrpcEndpoint, None if the field is not set or
holds a different branch.
Sourcepub fn set_grpc_endpoint<T: Into<Box<GrpcEndpoint>>>(self, v: T) -> Self
pub fn set_grpc_endpoint<T: Into<Box<GrpcEndpoint>>>(self, v: T) -> Self
Sets the value of [r#type][crate::model::ValidationCA::r#type]
to hold a GrpcEndpoint.
Note that all the setters affecting r#type are
mutually exclusive.
Sourcepub fn certificate_provider_instance(
&self,
) -> Option<&Box<CertificateProviderInstance>>
pub fn certificate_provider_instance( &self, ) -> Option<&Box<CertificateProviderInstance>>
The value of [r#type][crate::model::ValidationCA::r#type]
if it holds a CertificateProviderInstance, None if the field is not set or
holds a different branch.
Sourcepub fn set_certificate_provider_instance<T: Into<Box<CertificateProviderInstance>>>(
self,
v: T,
) -> Self
pub fn set_certificate_provider_instance<T: Into<Box<CertificateProviderInstance>>>( self, v: T, ) -> Self
Sets the value of [r#type][crate::model::ValidationCA::r#type]
to hold a CertificateProviderInstance.
Note that all the setters affecting r#type are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ValidationCA
impl Clone for ValidationCA
Source§fn clone(&self) -> ValidationCA
fn clone(&self) -> ValidationCA
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more