Struct googapis::google::cloud::billing::v1::BillingAccount [−][src]
pub struct BillingAccount {
pub name: String,
pub open: bool,
pub display_name: String,
pub master_billing_account: String,
}
Expand description
A billing account in GCP Console. You can assign a billing account to one or more projects.
Fields
name: String
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 will be 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 GCP Console.
master_billing_account: String
If this account is a [subaccount](https://cloud.google.com/billing/docs/concepts), then this will be the resource name of the master billing account that it is being resold through. Otherwise this will be empty.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BillingAccount
impl Send for BillingAccount
impl Sync for BillingAccount
impl Unpin for BillingAccount
impl UnwindSafe for BillingAccount
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more