pub struct CreateMinimumCommitmentInput {
pub amount_cents: i64,
pub invoice_display_name: Option<String>,
pub tax_codes: Option<Vec<String>>,
}Expand description
Input data for creating a minimum commitment.
Fields§
§amount_cents: i64Minimum commitment amount in cents.
invoice_display_name: Option<String>Invoice display name for the minimum commitment.
tax_codes: Option<Vec<String>>Tax codes for the minimum commitment.
Implementations§
Source§impl CreateMinimumCommitmentInput
impl CreateMinimumCommitmentInput
Sourcepub fn with_invoice_display_name(self, name: String) -> Self
pub fn with_invoice_display_name(self, name: String) -> Self
Sets the invoice display name.
Sourcepub fn with_tax_codes(self, tax_codes: Vec<String>) -> Self
pub fn with_tax_codes(self, tax_codes: Vec<String>) -> Self
Sets the tax codes.
Trait Implementations§
Source§impl Clone for CreateMinimumCommitmentInput
impl Clone for CreateMinimumCommitmentInput
Source§fn clone(&self) -> CreateMinimumCommitmentInput
fn clone(&self) -> CreateMinimumCommitmentInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateMinimumCommitmentInput
impl Debug for CreateMinimumCommitmentInput
Source§impl<'de> Deserialize<'de> for CreateMinimumCommitmentInput
impl<'de> Deserialize<'de> for CreateMinimumCommitmentInput
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
Auto Trait Implementations§
impl Freeze for CreateMinimumCommitmentInput
impl RefUnwindSafe for CreateMinimumCommitmentInput
impl Send for CreateMinimumCommitmentInput
impl Sync for CreateMinimumCommitmentInput
impl Unpin for CreateMinimumCommitmentInput
impl UnwindSafe for CreateMinimumCommitmentInput
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