Struct google_api_proto::google::cloud::billing::v1::ProjectBillingInfo
source · pub struct ProjectBillingInfo {
pub name: String,
pub project_id: String,
pub billing_account_name: String,
pub billing_enabled: bool,
}
Expand description
Encapsulation of billing information for a Google Cloud Console project. A project has at most one associated billing account at a time (but a billing account can be assigned to multiple projects).
Fields§
§name: String
Output only. The resource name for the ProjectBillingInfo
; has the form
projects/{project_id}/billingInfo
. For example, the resource name for the
billing information for project tokyo-rain-123
would be
projects/tokyo-rain-123/billingInfo
.
project_id: String
Output only. The ID of the project that this ProjectBillingInfo
represents, such as tokyo-rain-123
. This is a convenience field so that
you don’t need to parse the name
field to obtain a project ID.
billing_account_name: String
The resource name of the billing account associated with the project, if
any. For example, billingAccounts/012345-567890-ABCDEF
.
billing_enabled: bool
Output only. True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services.
Trait Implementations§
source§impl Clone for ProjectBillingInfo
impl Clone for ProjectBillingInfo
source§fn clone(&self) -> ProjectBillingInfo
fn clone(&self) -> ProjectBillingInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProjectBillingInfo
impl Debug for ProjectBillingInfo
source§impl Default for ProjectBillingInfo
impl Default for ProjectBillingInfo
source§impl Message for ProjectBillingInfo
impl Message for ProjectBillingInfo
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 ProjectBillingInfo
impl PartialEq for ProjectBillingInfo
source§fn eq(&self, other: &ProjectBillingInfo) -> bool
fn eq(&self, other: &ProjectBillingInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProjectBillingInfo
Auto Trait Implementations§
impl Freeze for ProjectBillingInfo
impl RefUnwindSafe for ProjectBillingInfo
impl Send for ProjectBillingInfo
impl Sync for ProjectBillingInfo
impl Unpin for ProjectBillingInfo
impl UnwindSafe for ProjectBillingInfo
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