pub struct BillingAccount {
pub name: String,
pub display_name: String,
pub default_account: bool,
pub billing_address: Option<BillingAddress>,
pub invoice_email: String,
pub vat_id: String,
pub contact_person: String,
pub payment_method: Option<PaymentMethod>,
pub create_time: Option<Timestamp>,
pub creator: String,
}Expand description
An organization’s billing account: who invoices are issued to, and how its projects’ usage is paid.
Fields§
§name: StringThe billing account’s resource name.
display_name: StringThe name the console and spend-limit alerts show. Not empty. An
organization’s default account is called default until it is
renamed.
default_account: boolWhether this is the organization’s default billing account: the one its new projects are linked to. Every organization has exactly one, and it can’t be deleted.
billing_address: Option<BillingAddress>The postal address invoices are issued to. Required to create an account; unset only on an organization’s default account until its profile is set.
invoice_email: StringWhere invoices are sent. Required to create an account; empty only on an organization’s default account until its profile is set.
vat_id: StringThe VAT identification number invoices name; empty for none. Required for a billing address outside Germany.
contact_person: StringWho invoices are addressed to. Required to create an account; empty only on an organization’s default account until its profile is set.
payment_method: Option<PaymentMethod>How the account is paid.
create_time: Option<Timestamp>When the billing account was created.
creator: StringThe principal that created the billing account, by its full name on iam:
//iam.origincloudapis.eu/users/{user},
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
or a platform service agent’s or service’s name when the platform did.
Trait Implementations§
Source§impl Clone for BillingAccount
impl Clone for BillingAccount
Source§impl Debug for BillingAccount
impl Debug for BillingAccount
Source§impl Default for BillingAccount
impl Default for BillingAccount
Source§impl<'de> Deserialize<'de> for BillingAccount
impl<'de> Deserialize<'de> for BillingAccount
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>,
impl Eq for BillingAccount
Source§impl Hash for BillingAccount
impl Hash 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§impl Serialize for BillingAccount
impl Serialize for BillingAccount
impl StructuralPartialEq for BillingAccount
Auto Trait Implementations§
impl Forget for BillingAccount
impl Freeze for BillingAccount
impl Move for BillingAccount
impl RefUnwindSafe for BillingAccount
impl Send for BillingAccountwhere
RawVecInner: Send,
impl Sync for BillingAccountwhere
RawVecInner: Sync,
impl Unpin for BillingAccount
impl UnsafeUnpin for BillingAccount
impl UnwindSafe for BillingAccountwhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.