#[non_exhaustive]pub struct CustomerOnboardingStep {
pub step: Step,
pub start_time: Option<Timestamp>,
pub completion_time: Option<Timestamp>,
pub completion_state: CompletionState,
/* private fields */
}Expand description
Container for customer 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. Current state of the step
Implementations§
Source§impl CustomerOnboardingStep
impl CustomerOnboardingStep
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 = CustomerOnboardingStep::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 = CustomerOnboardingStep::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = CustomerOnboardingStep::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 = CustomerOnboardingStep::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 = CustomerOnboardingStep::new().set_or_clear_completion_time(Some(Timestamp::default()/* use setters */));
let x = CustomerOnboardingStep::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 = CustomerOnboardingStep::new().set_completion_state(CompletionState::Pending);
let x1 = CustomerOnboardingStep::new().set_completion_state(CompletionState::Succeeded);
let x2 = CustomerOnboardingStep::new().set_completion_state(CompletionState::Failed);Trait Implementations§
Source§impl Clone for CustomerOnboardingStep
impl Clone for CustomerOnboardingStep
Source§fn clone(&self) -> CustomerOnboardingStep
fn clone(&self) -> CustomerOnboardingStep
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 CustomerOnboardingStep
impl Debug for CustomerOnboardingStep
Source§impl Default for CustomerOnboardingStep
impl Default for CustomerOnboardingStep
Source§fn default() -> CustomerOnboardingStep
fn default() -> CustomerOnboardingStep
Returns the “default value” for a type. Read more
Source§impl Message for CustomerOnboardingStep
impl Message for CustomerOnboardingStep
Source§impl PartialEq for CustomerOnboardingStep
impl PartialEq for CustomerOnboardingStep
impl StructuralPartialEq for CustomerOnboardingStep
Auto Trait Implementations§
impl Freeze for CustomerOnboardingStep
impl RefUnwindSafe for CustomerOnboardingStep
impl Send for CustomerOnboardingStep
impl Sync for CustomerOnboardingStep
impl Unpin for CustomerOnboardingStep
impl UnwindSafe for CustomerOnboardingStep
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