Struct gapi_grpc::google::cloud::assuredworkloads::v1beta1::workload::ResourceSettings[][src]

pub struct ResourceSettings {
    pub resource_id: String,
    pub resource_type: i32,
}

Represent the custom settings for the resources to be created.

Fields

resource_id: String

Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail.

resource_type: i32

Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)

Implementations

impl ResourceSettings[src]

pub fn resource_type(&self) -> ResourceType[src]

Returns the enum value of resource_type, or the default if the field is set to an invalid enum value.

pub fn set_resource_type(&mut self, value: ResourceType)[src]

Sets resource_type to the provided enum value.

Trait Implementations

impl Clone for ResourceSettings[src]

impl Debug for ResourceSettings[src]

impl Default for ResourceSettings[src]

impl Message for ResourceSettings[src]

impl PartialEq<ResourceSettings> for ResourceSettings[src]

impl StructuralPartialEq for ResourceSettings[src]

Auto Trait Implementations

impl RefUnwindSafe for ResourceSettings

impl Send for ResourceSettings

impl Sync for ResourceSettings

impl Unpin for ResourceSettings

impl UnwindSafe for ResourceSettings

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]