#[non_exhaustive]pub struct WorkloadOnboardingStep {
pub step: Step,
pub start_time: Option<Timestamp>,
pub completion_time: Option<Timestamp>,
pub completion_state: CompletionState,
/* private fields */
}Expand description
Container for workload onboarding information.
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.step: StepThe onboarding step.
start_time: Option<Timestamp>The starting time of the onboarding step.
completion_time: Option<Timestamp>The completion time of the onboarding step.
completion_state: CompletionStateOutput only. The completion state of the onboarding step.
Implementations§
Source§impl WorkloadOnboardingStep
impl WorkloadOnboardingStep
pub fn new() -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
ⓘ
use wkt::Timestamp;
let x = WorkloadOnboardingStep::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
ⓘ
use wkt::Timestamp;
let x = WorkloadOnboardingStep::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = WorkloadOnboardingStep::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_completion_time<T>(self, v: T) -> Self
pub fn set_completion_time<T>(self, v: T) -> Self
Sets the value of completion_time.
§Example
ⓘ
use wkt::Timestamp;
let x = WorkloadOnboardingStep::new().set_completion_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_completion_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_completion_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of completion_time.
§Example
ⓘ
use wkt::Timestamp;
let x = WorkloadOnboardingStep::new().set_or_clear_completion_time(Some(Timestamp::default()/* use setters */));
let x = WorkloadOnboardingStep::new().set_or_clear_completion_time(None::<Timestamp>);Sourcepub fn set_completion_state<T: Into<CompletionState>>(self, v: T) -> Self
pub fn set_completion_state<T: Into<CompletionState>>(self, v: T) -> Self
Sets the value of completion_state.
§Example
ⓘ
use google_cloud_cloudcontrolspartner_v1::model::CompletionState;
let x0 = WorkloadOnboardingStep::new().set_completion_state(CompletionState::Pending);
let x1 = WorkloadOnboardingStep::new().set_completion_state(CompletionState::Succeeded);
let x2 = WorkloadOnboardingStep::new().set_completion_state(CompletionState::Failed);Trait Implementations§
Source§impl Clone for WorkloadOnboardingStep
impl Clone for WorkloadOnboardingStep
Source§fn clone(&self) -> WorkloadOnboardingStep
fn clone(&self) -> WorkloadOnboardingStep
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 WorkloadOnboardingStep
impl Debug for WorkloadOnboardingStep
Source§impl Default for WorkloadOnboardingStep
impl Default for WorkloadOnboardingStep
Source§fn default() -> WorkloadOnboardingStep
fn default() -> WorkloadOnboardingStep
Returns the “default value” for a type. Read more
Source§impl Message for WorkloadOnboardingStep
impl Message for WorkloadOnboardingStep
Source§impl PartialEq for WorkloadOnboardingStep
impl PartialEq for WorkloadOnboardingStep
impl StructuralPartialEq for WorkloadOnboardingStep
Auto Trait Implementations§
impl Freeze for WorkloadOnboardingStep
impl RefUnwindSafe for WorkloadOnboardingStep
impl Send for WorkloadOnboardingStep
impl Sync for WorkloadOnboardingStep
impl Unpin for WorkloadOnboardingStep
impl UnwindSafe for WorkloadOnboardingStep
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