Struct gapi_grpc::google::cloud::resourcesettings::v1::Setting[][src]

pub struct Setting {
    pub name: String,
    pub metadata: Option<SettingMetadata>,
    pub local_value: Option<Value>,
    pub effective_value: Option<Value>,
    pub etag: String,
}

The schema for settings.

Fields

name: String

The resource name of the setting. Must be in one of the following forms:

For example, “/projects/123/settings/gcp-enableMyFeature”

metadata: Option<SettingMetadata>

Output only. Metadata about a setting which is not editable by the end user.

local_value: Option<Value>

The configured value of the setting at the given parent resource (ignoring the resource hierarchy). The data type of [Value][google.cloud.resourcesettings.v1.Value] must always be consistent with the data type defined in [Setting.metadata][google.cloud.resourcesettings.v1.Setting.metadata].

effective_value: Option<Value>

Output only. The computed effective value of the setting at the given parent resource (based on the resource hierarchy).

The effective value evaluates to one of the following options in the given order (the next option is used if the previous one does not exist):

  1. the local setting value on the given resource: [Setting.local_value][google.cloud.resourcesettings.v1.Setting.local_value]
  2. if one of the given resource’s ancestors have a local setting value, the local value at the nearest such ancestor
  3. the setting’s default value: [SettingMetadata.default_value][google.cloud.resourcesettings.v1.SettingMetadata.default_value]
  4. an empty value (defined as a Value with all fields unset)

The data type of [Value][google.cloud.resourcesettings.v1.Value] must always be consistent with the data type defined in [Setting.metadata][google.cloud.resourcesettings.v1.Setting.metadata].

etag: String

A fingerprint used for optimistic concurrency. See [UpdateSetting][google.cloud.resourcesettings.v1.ResourceSettingsService.UpdateSetting] for more details.

Trait Implementations

impl Clone for Setting[src]

impl Debug for Setting[src]

impl Default for Setting[src]

impl Message for Setting[src]

impl PartialEq<Setting> for Setting[src]

impl StructuralPartialEq for Setting[src]

Auto Trait Implementations

impl RefUnwindSafe for Setting

impl Send for Setting

impl Sync for Setting

impl Unpin for Setting

impl UnwindSafe for Setting

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]