#[non_exhaustive]pub struct Customer {
pub name: String,
pub display_name: String,
pub customer_onboarding_state: Option<CustomerOnboardingState>,
pub is_onboarded: bool,
pub organization_domain: String,
/* private fields */
}Expand description
Contains metadata around a Cloud Controls Partner Customer
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.name: StringIdentifier. Format:
organizations/{organization}/locations/{location}/customers/{customer}
display_name: StringRequired. Display name for the customer
customer_onboarding_state: Option<CustomerOnboardingState>Output only. Container for customer onboarding steps
is_onboarded: boolOutput only. Indicates whether a customer is fully onboarded
organization_domain: StringOutput only. The customer organization domain, extracted from CRM Organization’s display_name field. e.g. “google.com”
Implementations§
Source§impl Customer
impl Customer
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_customer_onboarding_state<T>(self, v: T) -> Selfwhere
T: Into<CustomerOnboardingState>,
pub fn set_customer_onboarding_state<T>(self, v: T) -> Selfwhere
T: Into<CustomerOnboardingState>,
Sets the value of customer_onboarding_state.
§Example
ⓘ
use google_cloud_cloudcontrolspartner_v1::model::CustomerOnboardingState;
let x = Customer::new().set_customer_onboarding_state(CustomerOnboardingState::default()/* use setters */);Sourcepub fn set_or_clear_customer_onboarding_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomerOnboardingState>,
pub fn set_or_clear_customer_onboarding_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomerOnboardingState>,
Sets or clears the value of customer_onboarding_state.
§Example
ⓘ
use google_cloud_cloudcontrolspartner_v1::model::CustomerOnboardingState;
let x = Customer::new().set_or_clear_customer_onboarding_state(Some(CustomerOnboardingState::default()/* use setters */));
let x = Customer::new().set_or_clear_customer_onboarding_state(None::<CustomerOnboardingState>);Sourcepub fn set_is_onboarded<T: Into<bool>>(self, v: T) -> Self
pub fn set_is_onboarded<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_organization_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_organization_domain<T: Into<String>>(self, v: T) -> Self
Sets the value of organization_domain.
§Example
ⓘ
let x = Customer::new().set_organization_domain("example");Trait Implementations§
impl StructuralPartialEq for Customer
Auto Trait Implementations§
impl Freeze for Customer
impl RefUnwindSafe for Customer
impl Send for Customer
impl Sync for Customer
impl Unpin for Customer
impl UnwindSafe for Customer
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