Enum google_api_proto::google::cloud::resourcesettings::v1::SettingView
source · #[repr(i32)]pub enum SettingView {
Unspecified = 0,
Basic = 1,
EffectiveValue = 2,
LocalValue = 3,
}
Expand description
View options for Settings.
Variants§
Unspecified = 0
The default / unset value. The API will default to the SETTING_VIEW_BASIC view.
Basic = 1
Include [Setting.metadata][google.cloud.resourcesettings.v1.Setting.metadata], but nothing else. This is the default value (for both ListSettings and GetSetting).
EffectiveValue = 2
Include [Setting.effective_value][google.cloud.resourcesettings.v1.Setting.effective_value], but nothing else.
LocalValue = 3
Include [Setting.local_value][google.cloud.resourcesettings.v1.Setting.local_value], but nothing else.
Implementations§
source§impl SettingView
impl SettingView
source§impl SettingView
impl SettingView
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 SettingView
impl Clone for SettingView
source§fn clone(&self) -> SettingView
fn clone(&self) -> SettingView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SettingView
impl Debug for SettingView
source§impl Default for SettingView
impl Default for SettingView
source§fn default() -> SettingView
fn default() -> SettingView
source§impl From<SettingView> for i32
impl From<SettingView> for i32
source§fn from(value: SettingView) -> i32
fn from(value: SettingView) -> i32
source§impl Hash for SettingView
impl Hash for SettingView
source§impl Ord for SettingView
impl Ord for SettingView
source§fn cmp(&self, other: &SettingView) -> Ordering
fn cmp(&self, other: &SettingView) -> 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 SettingView
impl PartialEq for SettingView
source§fn eq(&self, other: &SettingView) -> bool
fn eq(&self, other: &SettingView) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SettingView
impl PartialOrd for SettingView
source§fn partial_cmp(&self, other: &SettingView) -> Option<Ordering>
fn partial_cmp(&self, other: &SettingView) -> 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 SettingView
impl TryFrom<i32> for SettingView
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<SettingView, UnknownEnumValue>
fn try_from(value: i32) -> Result<SettingView, UnknownEnumValue>
impl Copy for SettingView
impl Eq for SettingView
impl StructuralPartialEq for SettingView
Auto Trait Implementations§
impl Freeze for SettingView
impl RefUnwindSafe for SettingView
impl Send for SettingView
impl Sync for SettingView
impl Unpin for SettingView
impl UnwindSafe for SettingView
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