Enum google_api_proto::google::cloud::orchestration::airflow::service::v1::networking_config::ConnectionType
source · #[repr(i32)]pub enum ConnectionType {
Unspecified = 0,
VpcPeering = 1,
PrivateServiceConnect = 2,
}
Expand description
Represents connection type between Composer environment in Customer Project and the corresponding Tenant project, from a predefined list of available connection modes.
Variants§
Unspecified = 0
No specific connection type was requested, so the environment uses the default value corresponding to the rest of its configuration.
VpcPeering = 1
Requests the use of VPC peerings for connecting the Customer and Tenant projects.
PrivateServiceConnect = 2
Requests the use of Private Service Connect for connecting the Customer and Tenant projects.
Implementations§
source§impl ConnectionType
impl ConnectionType
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 ConnectionType
impl Clone for ConnectionType
source§fn clone(&self) -> ConnectionType
fn clone(&self) -> ConnectionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConnectionType
impl Debug for ConnectionType
source§impl Default for ConnectionType
impl Default for ConnectionType
source§fn default() -> ConnectionType
fn default() -> ConnectionType
source§impl From<ConnectionType> for i32
impl From<ConnectionType> for i32
source§fn from(value: ConnectionType) -> i32
fn from(value: ConnectionType) -> i32
source§impl Hash for ConnectionType
impl Hash for ConnectionType
source§impl Ord for ConnectionType
impl Ord for ConnectionType
source§fn cmp(&self, other: &ConnectionType) -> Ordering
fn cmp(&self, other: &ConnectionType) -> 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 ConnectionType
impl PartialEq for ConnectionType
source§fn eq(&self, other: &ConnectionType) -> bool
fn eq(&self, other: &ConnectionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConnectionType
impl PartialOrd for ConnectionType
source§fn partial_cmp(&self, other: &ConnectionType) -> Option<Ordering>
fn partial_cmp(&self, other: &ConnectionType) -> 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 ConnectionType
impl TryFrom<i32> for ConnectionType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<ConnectionType, DecodeError>
fn try_from(value: i32) -> Result<ConnectionType, DecodeError>
impl Copy for ConnectionType
impl Eq for ConnectionType
impl StructuralPartialEq for ConnectionType
Auto Trait Implementations§
impl Freeze for ConnectionType
impl RefUnwindSafe for ConnectionType
impl Send for ConnectionType
impl Sync for ConnectionType
impl Unpin for ConnectionType
impl UnwindSafe for ConnectionType
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