pub struct CreateBillingAccountRequest {
pub parent: String,
pub billing_account: Option<BillingAccount>,
pub request_id: String,
pub accepted_legal_documents: Vec<LegalDocumentVersionToAccept>,
pub acts_as_business: bool,
}Expand description
The request for CreateBillingAccount.
Fields§
§parent: StringThe organization to create the billing account in,
organizations/{organization}.
billing_account: Option<BillingAccount>The billing account to create: its display_name and profile.
request_id: StringA UUID; a repeat with the same id returns the billing account the first request created instead of creating a second one.
accepted_legal_documents: Vec<LegalDocumentVersionToAccept>The legal document versions the new billing account accepts, each with
the sha256 of the text shown. Required once a version of a document
customers accept is in force: every such version must be accepted, or
the request fails naming acceptedLegalDocuments and creates nothing.
acts_as_business: boolThat the caller acts as a business (§ 14 BGB) for the billing account’s
legal entity. Must be true when accepted_legal_documents is set.
Trait Implementations§
Source§impl Clone for CreateBillingAccountRequest
impl Clone for CreateBillingAccountRequest
Source§impl Debug for CreateBillingAccountRequest
impl Debug for CreateBillingAccountRequest
Source§impl<'de> Deserialize<'de> for CreateBillingAccountRequest
impl<'de> Deserialize<'de> for CreateBillingAccountRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for CreateBillingAccountRequest
impl Message for CreateBillingAccountRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for CreateBillingAccountRequest
Auto Trait Implementations§
impl Forget for CreateBillingAccountRequest
impl Freeze for CreateBillingAccountRequestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<LegalDocumentVersionToAccept>: Freeze,
impl Move for CreateBillingAccountRequest
impl RefUnwindSafe for CreateBillingAccountRequest
impl Send for CreateBillingAccountRequestwhere
RawVecInner: Send,
impl Sync for CreateBillingAccountRequestwhere
RawVecInner: Sync,
impl Unpin for CreateBillingAccountRequest
impl UnsafeUnpin for CreateBillingAccountRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<LegalDocumentVersionToAccept>: UnsafeUnpin,
impl UnwindSafe for CreateBillingAccountRequestwhere
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
Mutably borrows from an owned value. Read more