pub struct CustomerClient {
pub resource_name: String,
pub client_customer: String,
pub hidden: bool,
pub level: i64,
pub time_zone: String,
pub test_account: bool,
pub manager: bool,
pub descriptive_name: String,
pub currency_code: String,
pub id: i64,
pub applied_labels: Vec<String>,
pub status: i32,
}
Expand description
A link between the given customer and a client customer. CustomerClients only exist for manager customers. All direct and indirect client customers are included, as well as the manager itself.
Fields§
§resource_name: String
Output only. The resource name of the customer client.
CustomerClient resource names have the form:
customers/{customer_id}/customerClients/{client_customer_id}
client_customer: String
Output only. The resource name of the client-customer which is linked to the given customer. Read only.
Output only. Specifies whether this is a hidden account. Read only.
level: i64
Output only. Distance between given customer and client. For self link, the level value will be 0. Read only.
time_zone: String
Output only. Common Locale Data Repository (CLDR) string representation of the time zone of the client, for example, America/Los_Angeles. Read only.
test_account: bool
Output only. Identifies if the client is a test account. Read only.
manager: bool
Output only. Identifies if the client is a manager. Read only.
descriptive_name: String
Output only. Descriptive name for the client. Read only.
currency_code: String
Output only. Currency code (for example, ‘USD’, ‘EUR’) for the client. Read only.
id: i64
Output only. The ID of the client customer. Read only.
applied_labels: Vec<String>
Output only. The resource names of the labels owned by the requesting customer that are applied to the client customer. Label resource names have the form:
customers/{customer_id}/labels/{label_id}
status: i32
Output only. The status of the client customer. Read only.
Implementations§
Source§impl CustomerClient
impl CustomerClient
Sourcepub fn status(&self) -> CustomerStatus
pub fn status(&self) -> CustomerStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: CustomerStatus)
pub fn set_status(&mut self, value: CustomerStatus)
Sets status
to the provided enum value.
Trait Implementations§
Source§impl Clone for CustomerClient
impl Clone for CustomerClient
Source§fn clone(&self) -> CustomerClient
fn clone(&self) -> CustomerClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CustomerClient
impl Debug for CustomerClient
Source§impl Default for CustomerClient
impl Default for CustomerClient
Source§impl Message for CustomerClient
impl Message for CustomerClient
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for CustomerClient
impl PartialEq for CustomerClient
impl StructuralPartialEq for CustomerClient
Auto Trait Implementations§
impl Freeze for CustomerClient
impl RefUnwindSafe for CustomerClient
impl Send for CustomerClient
impl Sync for CustomerClient
impl Unpin for CustomerClient
impl UnwindSafe for CustomerClient
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request