#[non_exhaustive]pub struct AllocationResourceStatus {
pub health_info: Option<AllocationResourceStatusHealthInfo>,
pub reservation_block_count: Option<i32>,
pub reservation_maintenance: Option<GroupMaintenanceInfo>,
pub specific_sku_allocation: Option<AllocationResourceStatusSpecificSKUAllocation>,
/* private fields */
}Available on crate features
region-commitments or reservations only.Expand description
[Output Only] Contains output only fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.health_info: Option<AllocationResourceStatusHealthInfo>[Output only] Health information for the reservation.
reservation_block_count: Option<i32>The number of reservation blocks associated with this reservation.
reservation_maintenance: Option<GroupMaintenanceInfo>Maintenance information for this reservation
specific_sku_allocation: Option<AllocationResourceStatusSpecificSKUAllocation>Allocation Properties of this reservation.
Implementations§
Source§impl AllocationResourceStatus
impl AllocationResourceStatus
pub fn new() -> Self
Sourcepub fn set_health_info<T>(self, v: T) -> Selfwhere
T: Into<AllocationResourceStatusHealthInfo>,
pub fn set_health_info<T>(self, v: T) -> Selfwhere
T: Into<AllocationResourceStatusHealthInfo>,
Sets the value of health_info.
§Example
ⓘ
use google_cloud_compute_v1::model::AllocationResourceStatusHealthInfo;
let x = AllocationResourceStatus::new().set_health_info(AllocationResourceStatusHealthInfo::default()/* use setters */);Sourcepub fn set_or_clear_health_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<AllocationResourceStatusHealthInfo>,
pub fn set_or_clear_health_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<AllocationResourceStatusHealthInfo>,
Sets or clears the value of health_info.
§Example
ⓘ
use google_cloud_compute_v1::model::AllocationResourceStatusHealthInfo;
let x = AllocationResourceStatus::new().set_or_clear_health_info(Some(AllocationResourceStatusHealthInfo::default()/* use setters */));
let x = AllocationResourceStatus::new().set_or_clear_health_info(None::<AllocationResourceStatusHealthInfo>);Sourcepub fn set_reservation_block_count<T>(self, v: T) -> Self
pub fn set_reservation_block_count<T>(self, v: T) -> Self
Sets the value of reservation_block_count.
§Example
ⓘ
let x = AllocationResourceStatus::new().set_reservation_block_count(42);Sourcepub fn set_or_clear_reservation_block_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_reservation_block_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of reservation_block_count.
§Example
ⓘ
let x = AllocationResourceStatus::new().set_or_clear_reservation_block_count(Some(42));
let x = AllocationResourceStatus::new().set_or_clear_reservation_block_count(None::<i32>);Sourcepub fn set_reservation_maintenance<T>(self, v: T) -> Selfwhere
T: Into<GroupMaintenanceInfo>,
pub fn set_reservation_maintenance<T>(self, v: T) -> Selfwhere
T: Into<GroupMaintenanceInfo>,
Sets the value of reservation_maintenance.
§Example
ⓘ
use google_cloud_compute_v1::model::GroupMaintenanceInfo;
let x = AllocationResourceStatus::new().set_reservation_maintenance(GroupMaintenanceInfo::default()/* use setters */);Sourcepub fn set_or_clear_reservation_maintenance<T>(self, v: Option<T>) -> Selfwhere
T: Into<GroupMaintenanceInfo>,
pub fn set_or_clear_reservation_maintenance<T>(self, v: Option<T>) -> Selfwhere
T: Into<GroupMaintenanceInfo>,
Sets or clears the value of reservation_maintenance.
§Example
ⓘ
use google_cloud_compute_v1::model::GroupMaintenanceInfo;
let x = AllocationResourceStatus::new().set_or_clear_reservation_maintenance(Some(GroupMaintenanceInfo::default()/* use setters */));
let x = AllocationResourceStatus::new().set_or_clear_reservation_maintenance(None::<GroupMaintenanceInfo>);Sourcepub fn set_specific_sku_allocation<T>(self, v: T) -> Self
pub fn set_specific_sku_allocation<T>(self, v: T) -> Self
Sets the value of specific_sku_allocation.
§Example
ⓘ
use google_cloud_compute_v1::model::AllocationResourceStatusSpecificSKUAllocation;
let x = AllocationResourceStatus::new().set_specific_sku_allocation(AllocationResourceStatusSpecificSKUAllocation::default()/* use setters */);Sourcepub fn set_or_clear_specific_sku_allocation<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_specific_sku_allocation<T>(self, v: Option<T>) -> Self
Sets or clears the value of specific_sku_allocation.
§Example
ⓘ
use google_cloud_compute_v1::model::AllocationResourceStatusSpecificSKUAllocation;
let x = AllocationResourceStatus::new().set_or_clear_specific_sku_allocation(Some(AllocationResourceStatusSpecificSKUAllocation::default()/* use setters */));
let x = AllocationResourceStatus::new().set_or_clear_specific_sku_allocation(None::<AllocationResourceStatusSpecificSKUAllocation>);Trait Implementations§
Source§impl Clone for AllocationResourceStatus
impl Clone for AllocationResourceStatus
Source§fn clone(&self) -> AllocationResourceStatus
fn clone(&self) -> AllocationResourceStatus
Returns a duplicate 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 AllocationResourceStatus
impl Debug for AllocationResourceStatus
Source§impl Default for AllocationResourceStatus
impl Default for AllocationResourceStatus
Source§fn default() -> AllocationResourceStatus
fn default() -> AllocationResourceStatus
Returns the “default value” for a type. Read more
Source§impl Message for AllocationResourceStatus
impl Message for AllocationResourceStatus
Source§impl PartialEq for AllocationResourceStatus
impl PartialEq for AllocationResourceStatus
impl StructuralPartialEq for AllocationResourceStatus
Auto Trait Implementations§
impl Freeze for AllocationResourceStatus
impl RefUnwindSafe for AllocationResourceStatus
impl Send for AllocationResourceStatus
impl Sync for AllocationResourceStatus
impl Unpin for AllocationResourceStatus
impl UnwindSafe for AllocationResourceStatus
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