Struct google_api_proto::google::ads::googleads::v15::resources::CustomerClient
source · pub struct CustomerClient {
pub resource_name: String,
pub client_customer: Option<String>,
pub hidden: Option<bool>,
pub level: Option<i64>,
pub time_zone: Option<String>,
pub test_account: Option<bool>,
pub manager: Option<bool>,
pub descriptive_name: Option<String>,
pub currency_code: Option<String>,
pub id: Option<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: Option<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: Option<i64>
Output only. Distance between given customer and client. For self link, the level value will be 0. Read only.
time_zone: Option<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: Option<bool>
Output only. Identifies if the client is a test account. Read only.
manager: Option<bool>
Output only. Identifies if the client is a manager. Read only.
descriptive_name: Option<String>
Output only. Descriptive name for the client. Read only.
currency_code: Option<String>
Output only. Currency code (for example, ‘USD’, ‘EUR’) for the client. Read only.
id: Option<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 client_customer(&self) -> &str
pub fn client_customer(&self) -> &str
Returns the value of client_customer
, or the default value if client_customer
is unset.
Returns the value of hidden
, or the default value if hidden
is unset.
sourcepub fn time_zone(&self) -> &str
pub fn time_zone(&self) -> &str
Returns the value of time_zone
, or the default value if time_zone
is unset.
sourcepub fn test_account(&self) -> bool
pub fn test_account(&self) -> bool
Returns the value of test_account
, or the default value if test_account
is unset.
sourcepub fn manager(&self) -> bool
pub fn manager(&self) -> bool
Returns the value of manager
, or the default value if manager
is unset.
sourcepub fn descriptive_name(&self) -> &str
pub fn descriptive_name(&self) -> &str
Returns the value of descriptive_name
, or the default value if descriptive_name
is unset.
sourcepub fn currency_code(&self) -> &str
pub fn currency_code(&self) -> &str
Returns the value of currency_code
, or the default value if currency_code
is unset.
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CustomerClient
impl PartialEq for CustomerClient
source§fn eq(&self, other: &CustomerClient) -> bool
fn eq(&self, other: &CustomerClient) -> bool
self
and other
values to be equal, and is used
by ==
.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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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