pub struct CurrentBreakup {
pub discount: i32,
pub subtotal: i32,
pub tax: Option<i32>,
pub total_amount: i32,
}Expand description
CurrentBreakup : Breakup of the current (first) payment
Fields§
§discount: i32Total discount amount
subtotal: i32Subtotal before discount (pre-tax original prices)
tax: Option<i32>Total tax amount
total_amount: i32Total amount to be charged (final amount after all calculations)
Implementations§
Trait Implementations§
Source§impl Clone for CurrentBreakup
impl Clone for CurrentBreakup
Source§fn clone(&self) -> CurrentBreakup
fn clone(&self) -> CurrentBreakup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CurrentBreakup
impl Debug for CurrentBreakup
Source§impl Default for CurrentBreakup
impl Default for CurrentBreakup
Source§fn default() -> CurrentBreakup
fn default() -> CurrentBreakup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurrentBreakup
impl<'de> Deserialize<'de> for CurrentBreakup
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 PartialEq for CurrentBreakup
impl PartialEq for CurrentBreakup
Source§impl Serialize for CurrentBreakup
impl Serialize for CurrentBreakup
impl StructuralPartialEq for CurrentBreakup
Auto Trait Implementations§
impl Freeze for CurrentBreakup
impl RefUnwindSafe for CurrentBreakup
impl Send for CurrentBreakup
impl Sync for CurrentBreakup
impl Unpin for CurrentBreakup
impl UnsafeUnpin for CurrentBreakup
impl UnwindSafe for CurrentBreakup
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