pub struct ProjectBillingInfo {
pub billing_account_name: Option<String>,
pub billing_enabled: Option<bool>,
pub name: Option<String>,
pub project_id: Option<String>,
}
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).
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get billing info projects (response)
- update billing info projects (request|response)
Fields§
§billing_account_name: Option<String>
The resource name of the billing account associated with the project, if any. For example, billingAccounts/012345-567890-ABCDEF
.
billing_enabled: Option<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.
name: Option<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: Option<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.
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§fn default() -> ProjectBillingInfo
fn default() -> ProjectBillingInfo
Source§impl<'de> Deserialize<'de> for ProjectBillingInfo
impl<'de> Deserialize<'de> for ProjectBillingInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ProjectBillingInfo
impl Serialize for ProjectBillingInfo
impl RequestValue for ProjectBillingInfo
impl ResponseResult 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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more