Enum google_api_proto::google::cloud::alloydb::v1beta::InstanceView
source · #[repr(i32)]pub enum InstanceView {
Unspecified = 0,
Basic = 1,
Full = 2,
}
Expand description
View on Instance. Pass this enum to rpcs that returns an Instance message to control which subsets of fields to get.
Variants§
Unspecified = 0
INSTANCE_VIEW_UNSPECIFIED Not specified, equivalent to BASIC.
Basic = 1
BASIC server responses for a primary or read instance include all the relevant instance details, excluding the details of each node in the instance. The default value.
Full = 2
FULL response is equivalent to BASIC for primary instance (for now). For read pool instance, this includes details of each node in the pool.
Implementations§
source§impl InstanceView
impl InstanceView
source§impl InstanceView
impl InstanceView
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 InstanceView
impl Clone for InstanceView
source§fn clone(&self) -> InstanceView
fn clone(&self) -> InstanceView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceView
impl Debug for InstanceView
source§impl Default for InstanceView
impl Default for InstanceView
source§fn default() -> InstanceView
fn default() -> InstanceView
source§impl From<InstanceView> for i32
impl From<InstanceView> for i32
source§fn from(value: InstanceView) -> i32
fn from(value: InstanceView) -> i32
source§impl Hash for InstanceView
impl Hash for InstanceView
source§impl Ord for InstanceView
impl Ord for InstanceView
source§fn cmp(&self, other: &InstanceView) -> Ordering
fn cmp(&self, other: &InstanceView) -> 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 InstanceView
impl PartialEq for InstanceView
source§fn eq(&self, other: &InstanceView) -> bool
fn eq(&self, other: &InstanceView) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InstanceView
impl PartialOrd for InstanceView
source§fn partial_cmp(&self, other: &InstanceView) -> Option<Ordering>
fn partial_cmp(&self, other: &InstanceView) -> 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 InstanceView
impl TryFrom<i32> for InstanceView
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<InstanceView, UnknownEnumValue>
fn try_from(value: i32) -> Result<InstanceView, UnknownEnumValue>
impl Copy for InstanceView
impl Eq for InstanceView
impl StructuralPartialEq for InstanceView
Auto Trait Implementations§
impl Freeze for InstanceView
impl RefUnwindSafe for InstanceView
impl Send for InstanceView
impl Sync for InstanceView
impl Unpin for InstanceView
impl UnwindSafe for InstanceView
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