pub struct InvoiceDiscountInput {
pub discount_type: InvoiceDiscountType,
pub name: Option<String>,
pub amount: Option<Decimal>,
pub percentage: Option<Decimal>,
}Expand description
Discount input for an invoice.
Fields§
§discount_type: InvoiceDiscountType§name: Option<String>§amount: Option<Decimal>§percentage: Option<Decimal>Implementations§
Trait Implementations§
Source§impl Clone for InvoiceDiscountInput
impl Clone for InvoiceDiscountInput
Source§fn clone(&self) -> InvoiceDiscountInput
fn clone(&self) -> InvoiceDiscountInput
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 InvoiceDiscountInput
impl Debug for InvoiceDiscountInput
Auto Trait Implementations§
impl Freeze for InvoiceDiscountInput
impl RefUnwindSafe for InvoiceDiscountInput
impl Send for InvoiceDiscountInput
impl Sync for InvoiceDiscountInput
impl Unpin for InvoiceDiscountInput
impl UnsafeUnpin for InvoiceDiscountInput
impl UnwindSafe for InvoiceDiscountInput
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