pub struct Company {
pub admin_emails: Option<Vec<String>>,
pub company_id: Option<i64>,
pub company_name: Option<String>,
pub google_workspace_account: Option<GoogleWorkspaceAccount>,
pub language_code: Option<String>,
pub name: Option<String>,
pub owner_emails: Option<Vec<String>>,
pub skip_welcome_email: Option<bool>,
pub terms_status: Option<String>,
}
Expand description
A reseller, vendor, or customer in the zero-touch reseller and customer APIs.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- customers create partners (response)
Fields§
§admin_emails: Option<Vec<String>>
Optional. Email address of customer’s users in the admin role. Each email address must be associated with a Google Account.
company_id: Option<i64>
Output only. The ID of the company. Assigned by the server.
company_name: Option<String>
Required. The name of the company. For example XYZ Corp. Displayed to the company’s employees in the zero-touch enrollment portal.
google_workspace_account: Option<GoogleWorkspaceAccount>
Output only. The Google Workspace account associated with this customer. Only used for customer Companies.
language_code: Option<String>
Input only. The preferred locale of the customer represented as a BCP47 language code. This field is validated on input and requests containing unsupported language codes will be rejected. Supported language codes: Arabic (ar) Chinese (Hong Kong) (zh-HK) Chinese (Simplified) (zh-CN) Chinese (Traditional) (zh-TW) Czech (cs) Danish (da) Dutch (nl) English (UK) (en-GB) English (US) (en-US) Filipino (fil) Finnish (fi) French (fr) German (de) Hebrew (iw) Hindi (hi) Hungarian (hu) Indonesian (id) Italian (it) Japanese (ja) Korean (ko) Norwegian (Bokmal) (no) Polish (pl) Portuguese (Brazil) (pt-BR) Portuguese (Portugal) (pt-PT) Russian (ru) Spanish (es) Spanish (Latin America) (es-419) Swedish (sv) Thai (th) Turkish (tr) Ukrainian (uk) Vietnamese (vi)
name: Option<String>
Output only. The API resource name of the company. The resource name is one of the following formats: * partners/[PARTNER_ID]/customers/[CUSTOMER_ID]
* partners/[PARTNER_ID]/vendors/[VENDOR_ID]
* partners/[PARTNER_ID]/vendors/[VENDOR_ID]/customers/[CUSTOMER_ID]
Assigned by the server.
owner_emails: Option<Vec<String>>
Required. Input only. Email address of customer’s users in the owner role. At least one owner_email
is required. Owners share the same access as admins but can also add, delete, and edit your organization’s portal users.
skip_welcome_email: Option<bool>
Input only. If set to true, welcome email will not be sent to the customer. It is recommended to skip the welcome email if devices will be claimed with additional DEVICE_PROTECTION service, as the customer will receive separate emails at device claim time. This field is ignored if this is not a Zero-touch customer.
terms_status: Option<String>
Output only. Whether any user from the company has accepted the latest Terms of Service (ToS). See TermsStatus.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Company
impl<'de> Deserialize<'de> for Company
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl ResponseResult for Company
Auto Trait Implementations§
impl Freeze for Company
impl RefUnwindSafe for Company
impl Send for Company
impl Sync for Company
impl Unpin for Company
impl UnwindSafe for Company
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more