#[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
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.
§Example
use google_cloud_networksecurity_v1::model::GrpcEndpoint;
let x = ValidationCA::new().set_type(Some(
google_cloud_networksecurity_v1::model::validation_ca::Type::GrpcEndpoint(GrpcEndpoint::default().into())));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.
§Example
use google_cloud_networksecurity_v1::model::GrpcEndpoint;
let x = ValidationCA::new().set_grpc_endpoint(GrpcEndpoint::default()/* use setters */);
assert!(x.grpc_endpoint().is_some());
assert!(x.certificate_provider_instance().is_none());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.
§Example
use google_cloud_networksecurity_v1::model::CertificateProviderInstance;
let x = ValidationCA::new().set_certificate_provider_instance(CertificateProviderInstance::default()/* use setters */);
assert!(x.certificate_provider_instance().is_some());
assert!(x.grpc_endpoint().is_none());Trait Implementations§
Source§impl Clone for ValidationCA
impl Clone for ValidationCA
Source§fn clone(&self) -> ValidationCA
fn clone(&self) -> ValidationCA
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidationCA
impl Debug for ValidationCA
Source§impl Default for ValidationCA
impl Default for ValidationCA
Source§fn default() -> ValidationCA
fn default() -> ValidationCA
Source§impl Message for ValidationCA
impl Message for ValidationCA
Source§impl PartialEq for ValidationCA
impl PartialEq for ValidationCA
impl StructuralPartialEq for ValidationCA
Auto Trait Implementations§
impl Freeze for ValidationCA
impl RefUnwindSafe for ValidationCA
impl Send for ValidationCA
impl Sync for ValidationCA
impl Unpin for ValidationCA
impl UnsafeUnpin for ValidationCA
impl UnwindSafe for ValidationCA
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request