#[non_exhaustive]pub struct ReservationSubBlocksReportFaultyRequest {
pub disruption_schedule: Option<DisruptionSchedule>,
pub failure_component: Option<FailureComponent>,
pub fault_reasons: Vec<ReservationSubBlocksReportFaultyRequestFaultReason>,
/* private fields */
}Available on crate feature
reservation-sub-blocks only.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.disruption_schedule: Option<DisruptionSchedule>The disruption schedule for the subBlock.
failure_component: Option<FailureComponent>The component that experienced the fault.
fault_reasons: Vec<ReservationSubBlocksReportFaultyRequestFaultReason>The reasons for the fault experienced with the subBlock.
Implementations§
Source§impl ReservationSubBlocksReportFaultyRequest
impl ReservationSubBlocksReportFaultyRequest
pub fn new() -> Self
Sourcepub fn set_disruption_schedule<T>(self, v: T) -> Selfwhere
T: Into<DisruptionSchedule>,
pub fn set_disruption_schedule<T>(self, v: T) -> Selfwhere
T: Into<DisruptionSchedule>,
Sets the value of disruption_schedule.
§Example
ⓘ
use google_cloud_compute_v1::model::reservation_sub_blocks_report_faulty_request::DisruptionSchedule;
let x0 = ReservationSubBlocksReportFaultyRequest::new().set_disruption_schedule(DisruptionSchedule::Immediate);Sourcepub fn set_or_clear_disruption_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<DisruptionSchedule>,
pub fn set_or_clear_disruption_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<DisruptionSchedule>,
Sets or clears the value of disruption_schedule.
§Example
ⓘ
use google_cloud_compute_v1::model::reservation_sub_blocks_report_faulty_request::DisruptionSchedule;
let x0 = ReservationSubBlocksReportFaultyRequest::new().set_or_clear_disruption_schedule(Some(DisruptionSchedule::Immediate));
let x_none = ReservationSubBlocksReportFaultyRequest::new().set_or_clear_disruption_schedule(None::<DisruptionSchedule>);Sourcepub fn set_failure_component<T>(self, v: T) -> Selfwhere
T: Into<FailureComponent>,
pub fn set_failure_component<T>(self, v: T) -> Selfwhere
T: Into<FailureComponent>,
Sets the value of failure_component.
§Example
ⓘ
use google_cloud_compute_v1::model::reservation_sub_blocks_report_faulty_request::FailureComponent;
let x0 = ReservationSubBlocksReportFaultyRequest::new().set_failure_component(FailureComponent::MultipleFaultyHosts);
let x1 = ReservationSubBlocksReportFaultyRequest::new().set_failure_component(FailureComponent::NvlinkSwitch);Sourcepub fn set_or_clear_failure_component<T>(self, v: Option<T>) -> Selfwhere
T: Into<FailureComponent>,
pub fn set_or_clear_failure_component<T>(self, v: Option<T>) -> Selfwhere
T: Into<FailureComponent>,
Sets or clears the value of failure_component.
§Example
ⓘ
use google_cloud_compute_v1::model::reservation_sub_blocks_report_faulty_request::FailureComponent;
let x0 = ReservationSubBlocksReportFaultyRequest::new().set_or_clear_failure_component(Some(FailureComponent::MultipleFaultyHosts));
let x1 = ReservationSubBlocksReportFaultyRequest::new().set_or_clear_failure_component(Some(FailureComponent::NvlinkSwitch));
let x_none = ReservationSubBlocksReportFaultyRequest::new().set_or_clear_failure_component(None::<FailureComponent>);Sourcepub fn set_fault_reasons<T, V>(self, v: T) -> Self
pub fn set_fault_reasons<T, V>(self, v: T) -> Self
Sets the value of fault_reasons.
§Example
ⓘ
use google_cloud_compute_v1::model::ReservationSubBlocksReportFaultyRequestFaultReason;
let x = ReservationSubBlocksReportFaultyRequest::new()
.set_fault_reasons([
ReservationSubBlocksReportFaultyRequestFaultReason::default()/* use setters */,
ReservationSubBlocksReportFaultyRequestFaultReason::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for ReservationSubBlocksReportFaultyRequest
impl Clone for ReservationSubBlocksReportFaultyRequest
Source§fn clone(&self) -> ReservationSubBlocksReportFaultyRequest
fn clone(&self) -> ReservationSubBlocksReportFaultyRequest
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 Default for ReservationSubBlocksReportFaultyRequest
impl Default for ReservationSubBlocksReportFaultyRequest
Source§fn default() -> ReservationSubBlocksReportFaultyRequest
fn default() -> ReservationSubBlocksReportFaultyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReservationSubBlocksReportFaultyRequest
impl PartialEq for ReservationSubBlocksReportFaultyRequest
Source§fn eq(&self, other: &ReservationSubBlocksReportFaultyRequest) -> bool
fn eq(&self, other: &ReservationSubBlocksReportFaultyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReservationSubBlocksReportFaultyRequest
Auto Trait Implementations§
impl Freeze for ReservationSubBlocksReportFaultyRequest
impl RefUnwindSafe for ReservationSubBlocksReportFaultyRequest
impl Send for ReservationSubBlocksReportFaultyRequest
impl Sync for ReservationSubBlocksReportFaultyRequest
impl Unpin for ReservationSubBlocksReportFaultyRequest
impl UnwindSafe for ReservationSubBlocksReportFaultyRequest
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