Struct gapi_grpc::google::ads::googleads::v4::resources::BillingSetup[][src]

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>,
}

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

impl BillingSetup[src]

pub fn status(&self) -> BillingSetupStatus[src]

Returns the enum value of status, or the default if the field is set to an invalid enum value.

pub fn set_status(&mut self, value: BillingSetupStatus)[src]

Sets status to the provided enum value.

Trait Implementations

impl Clone for BillingSetup[src]

impl Debug for BillingSetup[src]

impl Default for BillingSetup[src]

impl Message for BillingSetup[src]

impl PartialEq<BillingSetup> for BillingSetup[src]

impl StructuralPartialEq for BillingSetup[src]

Auto Trait Implementations

impl RefUnwindSafe for BillingSetup

impl Send for BillingSetup

impl Sync for BillingSetup

impl Unpin for BillingSetup

impl UnwindSafe for BillingSetup

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]