Enum google_api_proto::google::cloud::sql::v1::ip_configuration::SslMode
source · #[repr(i32)]pub enum SslMode {
Unspecified = 0,
AllowUnencryptedAndEncrypted = 1,
EncryptedOnly = 2,
TrustedClientCertificateRequired = 3,
}
Expand description
The SSL options for database connections.
Variants§
Unspecified = 0
The SSL mode is unknown.
AllowUnencryptedAndEncrypted = 1
Allow non-SSL/non-TLS and SSL/TLS connections. For SSL connections to MySQL and PostgreSQL, the client certificate isn’t verified.
When this value is used, the legacy require_ssl
flag must be false or
cleared to avoid a conflict between the values of the two flags.
EncryptedOnly = 2
Only allow connections encrypted with SSL/TLS. For SSL connections to MySQL and PostgreSQL, the client certificate isn’t verified.
When this value is used, the legacy require_ssl
flag must be false or
cleared to avoid a conflict between the values of the two flags.
TrustedClientCertificateRequired = 3
Only allow connections encrypted with SSL/TLS and with valid client certificates.
When this value is used, the legacy require_ssl
flag must be true or
cleared to avoid the conflict between values of two flags.
PostgreSQL clients or users that connect using IAM database
authentication must use either the
Cloud SQL Auth
Proxy or
Cloud SQL
Connectors
to enforce client identity verification.
Only applicable to MySQL and PostgreSQL. Not applicable to SQL Server.
Implementations§
source§impl SslMode
impl SslMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for SslMode
impl Ord for SslMode
source§impl PartialEq for SslMode
impl PartialEq for SslMode
source§impl PartialOrd for SslMode
impl PartialOrd for SslMode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for SslMode
impl TryFrom<i32> for SslMode
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for SslMode
impl Eq for SslMode
impl StructuralPartialEq for SslMode
Auto Trait Implementations§
impl Freeze for SslMode
impl RefUnwindSafe for SslMode
impl Send for SslMode
impl Sync for SslMode
impl Unpin for SslMode
impl UnwindSafe for SslMode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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