Struct google_container1::api::ReservationAffinity
source · pub struct ReservationAffinity {
pub consume_reservation_type: Option<String>,
pub key: Option<String>,
pub values: Option<Vec<String>>,
}
Expand description
ReservationAffinity is the configuration of desired reservation which instances could take capacity from.
This type is not used in any activity, and only used as part of another schema.
Fields§
§consume_reservation_type: Option<String>
Corresponds to the type of reservation consumption.
key: Option<String>
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify “compute.googleapis.com/reservation-name” as the key and specify the name of your reservation as its value.
values: Option<Vec<String>>
Corresponds to the label value(s) of reservation resource(s).
Trait Implementations§
source§impl Clone for ReservationAffinity
impl Clone for ReservationAffinity
source§fn clone(&self) -> ReservationAffinity
fn clone(&self) -> ReservationAffinity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReservationAffinity
impl Debug for ReservationAffinity
source§impl Default for ReservationAffinity
impl Default for ReservationAffinity
source§fn default() -> ReservationAffinity
fn default() -> ReservationAffinity
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ReservationAffinity
impl<'de> Deserialize<'de> for ReservationAffinity
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ReservationAffinity
impl Serialize for ReservationAffinity
impl Part for ReservationAffinity
Auto Trait Implementations§
impl RefUnwindSafe for ReservationAffinity
impl Send for ReservationAffinity
impl Sync for ReservationAffinity
impl Unpin for ReservationAffinity
impl UnwindSafe for ReservationAffinity
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
Mutably borrows from an owned value. Read more