#[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§impl PartialOrd for InstanceView
impl PartialOrd for InstanceView
Source§impl TryFrom<i32> for InstanceView
impl TryFrom<i32> for InstanceView
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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