pub struct CreateQuoteLineItems {
pub discounts: Option<Vec<DiscountsDataParam>>,
pub price: Option<String>,
pub price_data: Option<CreateQuoteLineItemsPriceData>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<String>>,
}
Expand description
A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.
Fields§
§discounts: Option<Vec<DiscountsDataParam>>
The discounts applied to this line item.
price: Option<String>
The ID of the price object. One of price
or price_data
is required.
price_data: Option<CreateQuoteLineItemsPriceData>
Data used to generate a new Price object inline.
One of price
or price_data
is required.
quantity: Option<u64>
The quantity of the line item.
tax_rates: Option<Vec<String>>
The tax rates which apply to the line item.
When set, the default_tax_rates
on the quote do not apply to this line item.
Implementations§
Trait Implementations§
Source§impl Clone for CreateQuoteLineItems
impl Clone for CreateQuoteLineItems
Source§fn clone(&self) -> CreateQuoteLineItems
fn clone(&self) -> CreateQuoteLineItems
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 CreateQuoteLineItems
impl Debug for CreateQuoteLineItems
Source§impl Default for CreateQuoteLineItems
impl Default for CreateQuoteLineItems
Auto Trait Implementations§
impl Freeze for CreateQuoteLineItems
impl RefUnwindSafe for CreateQuoteLineItems
impl Send for CreateQuoteLineItems
impl Sync for CreateQuoteLineItems
impl Unpin for CreateQuoteLineItems
impl UnwindSafe for CreateQuoteLineItems
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