Struct google_api_proto::google::cloud::connectors::v1::SslConfig
source · pub struct SslConfig {
pub type: i32,
pub trust_model: i32,
pub private_server_certificate: Option<Secret>,
pub client_certificate: Option<Secret>,
pub client_private_key: Option<Secret>,
pub client_private_key_pass: Option<Secret>,
pub server_cert_type: i32,
pub client_cert_type: i32,
pub use_ssl: bool,
pub additional_variables: Vec<ConfigVariable>,
}
Expand description
SSL Configuration of a connection
Fields§
§type: i32
Controls the ssl type for the given connector version.
trust_model: i32
Trust Model of the SSL connection
private_server_certificate: Option<Secret>
Private Server Certificate. Needs to be specified if trust model is
PRIVATE
.
client_certificate: Option<Secret>
Client Certificate
client_private_key: Option<Secret>
Client Private Key
client_private_key_pass: Option<Secret>
Secret containing the passphrase protecting the Client Private Key
server_cert_type: i32
Type of Server Cert (PEM/JKS/.. etc.)
client_cert_type: i32
Type of Client Cert (PEM/JKS/.. etc.)
use_ssl: bool
Bool for enabling SSL
additional_variables: Vec<ConfigVariable>
Additional SSL related field values
Implementations§
source§impl SslConfig
impl SslConfig
sourcepub fn type(&self) -> SslType
pub fn type(&self) -> SslType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn trust_model(&self) -> TrustModel
pub fn trust_model(&self) -> TrustModel
Returns the enum value of trust_model
, or the default if the field is set to an invalid enum value.
sourcepub fn set_trust_model(&mut self, value: TrustModel)
pub fn set_trust_model(&mut self, value: TrustModel)
Sets trust_model
to the provided enum value.
sourcepub fn server_cert_type(&self) -> CertType
pub fn server_cert_type(&self) -> CertType
Returns the enum value of server_cert_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_server_cert_type(&mut self, value: CertType)
pub fn set_server_cert_type(&mut self, value: CertType)
Sets server_cert_type
to the provided enum value.
sourcepub fn client_cert_type(&self) -> CertType
pub fn client_cert_type(&self) -> CertType
Returns the enum value of client_cert_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_client_cert_type(&mut self, value: CertType)
pub fn set_client_cert_type(&mut self, value: CertType)
Sets client_cert_type
to the provided enum value.
Trait Implementations§
source§impl Message for SslConfig
impl Message for SslConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SslConfig
impl PartialEq for SslConfig
impl StructuralPartialEq for SslConfig
Auto Trait Implementations§
impl Freeze for SslConfig
impl RefUnwindSafe for SslConfig
impl Send for SslConfig
impl Sync for SslConfig
impl Unpin for SslConfig
impl UnwindSafe for SslConfig
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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