#[non_exhaustive]pub struct CertificateProvider {
pub type: Option<Type>,
/* private fields */
}Expand description
Specification of certificate provider. Defines the mechanism to obtain the certificate and private key for peer to peer authentication.
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 certificates and private keys.
Implementations§
Source§impl CertificateProvider
impl CertificateProvider
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 = CertificateProvider::new().set_type(Some(
google_cloud_networksecurity_v1::model::certificate_provider::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::CertificateProvider::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::CertificateProvider::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 = CertificateProvider::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::CertificateProvider::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::CertificateProvider::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 = CertificateProvider::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 CertificateProvider
impl Clone for CertificateProvider
Source§fn clone(&self) -> CertificateProvider
fn clone(&self) -> CertificateProvider
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 CertificateProvider
impl Debug for CertificateProvider
Source§impl Default for CertificateProvider
impl Default for CertificateProvider
Source§fn default() -> CertificateProvider
fn default() -> CertificateProvider
Source§impl Message for CertificateProvider
impl Message for CertificateProvider
Source§impl PartialEq for CertificateProvider
impl PartialEq for CertificateProvider
impl StructuralPartialEq for CertificateProvider
Auto Trait Implementations§
impl Freeze for CertificateProvider
impl RefUnwindSafe for CertificateProvider
impl Send for CertificateProvider
impl Sync for CertificateProvider
impl Unpin for CertificateProvider
impl UnsafeUnpin for CertificateProvider
impl UnwindSafe for CertificateProvider
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