Struct google_api_proto::google::ads::googleads::v15::resources::BillingSetup
source · pub struct BillingSetup {
pub resource_name: String,
pub id: Option<i64>,
pub status: i32,
pub payments_account: Option<String>,
pub payments_account_info: Option<PaymentsAccountInfo>,
pub start_time: Option<StartTime>,
pub end_time: Option<EndTime>,
}
Expand description
A billing setup, which associates a payments account and an advertiser. A billing setup is specific to one advertiser.
Fields§
§resource_name: String
Immutable. The resource name of the billing setup. BillingSetup resource names have the form:
customers/{customer_id}/billingSetups/{billing_setup_id}
id: Option<i64>
Output only. The ID of the billing setup.
status: i32
Output only. The status of the billing setup.
payments_account: Option<String>
Immutable. The resource name of the payments account associated with this billing setup. Payments resource names have the form:
customers/{customer_id}/paymentsAccounts/{payments_account_id}
When setting up billing, this is used to signup with an existing payments
account (and then payments_account_info should not be set).
When getting a billing setup, this and payments_account_info will be
populated.
payments_account_info: Option<PaymentsAccountInfo>
Immutable. The payments account information associated with this billing setup. When setting up billing, this is used to signup with a new payments account (and then payments_account should not be set). When getting a billing setup, this and payments_account will be populated.
start_time: Option<StartTime>
When creating a new billing setup, this is when the setup should take effect. NOW is the only acceptable start time if the customer doesn’t have any approved setups.
When fetching an existing billing setup, this is the requested start time. However, if the setup was approved (see status) after the requested start time, then this is the approval time.
end_time: Option<EndTime>
When the billing setup ends / ended. This is either FOREVER or the start time of the next scheduled billing setup.
Implementations§
source§impl BillingSetup
impl BillingSetup
sourcepub fn status(&self) -> BillingSetupStatus
pub fn status(&self) -> BillingSetupStatus
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: BillingSetupStatus)
pub fn set_status(&mut self, value: BillingSetupStatus)
Sets status
to the provided enum value.
sourcepub fn payments_account(&self) -> &str
pub fn payments_account(&self) -> &str
Returns the value of payments_account
, or the default value if payments_account
is unset.
Trait Implementations§
source§impl Clone for BillingSetup
impl Clone for BillingSetup
source§fn clone(&self) -> BillingSetup
fn clone(&self) -> BillingSetup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BillingSetup
impl Debug for BillingSetup
source§impl Default for BillingSetup
impl Default for BillingSetup
source§impl Message for BillingSetup
impl Message for BillingSetup
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 BillingSetup
impl PartialEq for BillingSetup
source§fn eq(&self, other: &BillingSetup) -> bool
fn eq(&self, other: &BillingSetup) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BillingSetup
Auto Trait Implementations§
impl Freeze for BillingSetup
impl RefUnwindSafe for BillingSetup
impl Send for BillingSetup
impl Sync for BillingSetup
impl Unpin for BillingSetup
impl UnwindSafe for BillingSetup
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