pub struct CashDiscountConfig {
pub eligible_rate: f64,
pub taken_rate: f64,
pub discount_percent: f64,
pub discount_days: u32,
}Expand description
Cash discount configuration.
Fields§
§eligible_rate: f64Percentage of invoices eligible for cash discount
taken_rate: f64Rate at which customers take the discount
discount_percent: f64Standard discount percentage
discount_days: u32Days within which discount must be taken
Trait Implementations§
Source§impl Clone for CashDiscountConfig
impl Clone for CashDiscountConfig
Source§fn clone(&self) -> CashDiscountConfig
fn clone(&self) -> CashDiscountConfig
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 CashDiscountConfig
impl Debug for CashDiscountConfig
Source§impl Default for CashDiscountConfig
impl Default for CashDiscountConfig
Source§impl<'de> Deserialize<'de> for CashDiscountConfig
impl<'de> Deserialize<'de> for CashDiscountConfig
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 CashDiscountConfig
impl RefUnwindSafe for CashDiscountConfig
impl Send for CashDiscountConfig
impl Sync for CashDiscountConfig
impl Unpin for CashDiscountConfig
impl UnwindSafe for CashDiscountConfig
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