pub struct BillingSetup {
pub resource_name: String,
pub id: i64,
pub status: i32,
pub payments_account: 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: i64
Output only. The ID of the billing setup.
status: i32
Output only. The status of the billing setup.
payments_account: 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.
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<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 BillingSetup
impl PartialEq for BillingSetup
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
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