Enum google_api_proto::google::cloud::sql::v1::SqlIpAddressType
source · #[repr(i32)]pub enum SqlIpAddressType {
Unspecified = 0,
Primary = 1,
Outgoing = 2,
Private = 3,
Migrated1stGen = 4,
}
Variants§
Unspecified = 0
This is an unknown IP address type.
Primary = 1
IP address the customer is supposed to connect to. Usually this is the load balancer’s IP address
Outgoing = 2
Source IP address of the connection a read replica establishes to its external primary instance. This IP address can be allowlisted by the customer in case it has a firewall that filters incoming connection to its on premises primary instance.
Private = 3
Private IP used when using private IPs and network peering.
Migrated1stGen = 4
V1 IP of a migrated instance. We want the user to decommission this IP as soon as the migration is complete. Note: V1 instances with V1 ip addresses will be counted as PRIMARY.
Implementations§
source§impl SqlIpAddressType
impl SqlIpAddressType
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 Clone for SqlIpAddressType
impl Clone for SqlIpAddressType
source§fn clone(&self) -> SqlIpAddressType
fn clone(&self) -> SqlIpAddressType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SqlIpAddressType
impl Debug for SqlIpAddressType
source§impl Default for SqlIpAddressType
impl Default for SqlIpAddressType
source§fn default() -> SqlIpAddressType
fn default() -> SqlIpAddressType
source§impl From<SqlIpAddressType> for i32
impl From<SqlIpAddressType> for i32
source§fn from(value: SqlIpAddressType) -> i32
fn from(value: SqlIpAddressType) -> i32
source§impl Hash for SqlIpAddressType
impl Hash for SqlIpAddressType
source§impl Ord for SqlIpAddressType
impl Ord for SqlIpAddressType
source§fn cmp(&self, other: &SqlIpAddressType) -> Ordering
fn cmp(&self, other: &SqlIpAddressType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SqlIpAddressType
impl PartialEq for SqlIpAddressType
source§fn eq(&self, other: &SqlIpAddressType) -> bool
fn eq(&self, other: &SqlIpAddressType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SqlIpAddressType
impl PartialOrd for SqlIpAddressType
source§fn partial_cmp(&self, other: &SqlIpAddressType) -> Option<Ordering>
fn partial_cmp(&self, other: &SqlIpAddressType) -> Option<Ordering>
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 SqlIpAddressType
impl TryFrom<i32> for SqlIpAddressType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<SqlIpAddressType, DecodeError>
fn try_from(value: i32) -> Result<SqlIpAddressType, DecodeError>
impl Copy for SqlIpAddressType
impl Eq for SqlIpAddressType
impl StructuralPartialEq for SqlIpAddressType
Auto Trait Implementations§
impl Freeze for SqlIpAddressType
impl RefUnwindSafe for SqlIpAddressType
impl Send for SqlIpAddressType
impl Sync for SqlIpAddressType
impl Unpin for SqlIpAddressType
impl UnwindSafe for SqlIpAddressType
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