pub struct TransactionItemPreviewBase {
pub quantity: i64,
pub include_in_totals: bool,
pub proration: Option<Proration>,
}
Fields§
§quantity: i64
Quantity of this item on the transaction.
include_in_totals: bool
Whether this item should be included in totals for this transaction preview. Typically used to exclude one-time charges from calculations.
proration: Option<Proration>
How proration was calculated for this item. null
for transaction previews.
Trait Implementations§
Source§impl Clone for TransactionItemPreviewBase
impl Clone for TransactionItemPreviewBase
Source§fn clone(&self) -> TransactionItemPreviewBase
fn clone(&self) -> TransactionItemPreviewBase
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 TransactionItemPreviewBase
impl Debug for TransactionItemPreviewBase
Source§impl<'de> Deserialize<'de> for TransactionItemPreviewBase
impl<'de> Deserialize<'de> for TransactionItemPreviewBase
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 TransactionItemPreviewBase
impl RefUnwindSafe for TransactionItemPreviewBase
impl Send for TransactionItemPreviewBase
impl Sync for TransactionItemPreviewBase
impl Unpin for TransactionItemPreviewBase
impl UnwindSafe for TransactionItemPreviewBase
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