Enum google_api_proto::google::cloud::alloydb::v1alpha::ssl_config::SslMode
source · #[repr(i32)]pub enum SslMode {
Unspecified = 0,
Allow = 1,
Require = 2,
VerifyCa = 3,
AllowUnencryptedAndEncrypted = 4,
EncryptedOnly = 5,
}
Expand description
SSL mode options.
Variants§
Unspecified = 0
SSL mode not specified. Defaults to ENCRYPTED_ONLY.
Allow = 1
SSL connections are optional. CA verification not enforced.
Require = 2
SSL connections are required. CA verification not enforced. Clients may use locally self-signed certificates (default psql client behavior).
VerifyCa = 3
SSL connections are required. CA verification enforced. Clients must have certificates signed by a Cluster CA, e.g. via GenerateClientCertificate.
AllowUnencryptedAndEncrypted = 4
SSL connections are optional. CA verification not enforced.
EncryptedOnly = 5
SSL connections are required. CA verification not enforced.
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