Struct google_api_proto::google::cloud::billing::v1::BillingAccount
source · pub struct BillingAccount {
pub name: String,
pub open: bool,
pub display_name: String,
pub master_billing_account: String,
pub parent: String,
}
Expand description
A billing account in the Google Cloud Console. You can assign a billing account to one or more projects.
Fields§
§name: String
Output only. The resource name of the billing account. The resource name
has the form billingAccounts/{billing_account_id}
. For example,
billingAccounts/012345-567890-ABCDEF
would be the resource name for
billing account 012345-567890-ABCDEF
.
open: bool
Output only. True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it are unable to use paid services.
display_name: String
The display name given to the billing account, such as My Billing Account
. This name is displayed in the Google Cloud Console.
master_billing_account: String
If this account is a subaccount, then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
parent: String
Output only. The billing account’s parent resource identifier.
Use the MoveBillingAccount
method to update the account’s parent resource
if it is a organization.
Format:
organizations/{organization_id}
, for example,organizations/12345678
billingAccounts/{billing_account_id}
, for example,billingAccounts/012345-567890-ABCDEF
Trait Implementations§
source§impl Clone for BillingAccount
impl Clone for BillingAccount
source§fn clone(&self) -> BillingAccount
fn clone(&self) -> BillingAccount
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BillingAccount
impl Debug for BillingAccount
source§impl Default for BillingAccount
impl Default for BillingAccount
source§impl Message for BillingAccount
impl Message for BillingAccount
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 BillingAccount
impl PartialEq for BillingAccount
source§fn eq(&self, other: &BillingAccount) -> bool
fn eq(&self, other: &BillingAccount) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BillingAccount
Auto Trait Implementations§
impl Freeze for BillingAccount
impl RefUnwindSafe for BillingAccount
impl Send for BillingAccount
impl Sync for BillingAccount
impl Unpin for BillingAccount
impl UnwindSafe for BillingAccount
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