pub struct PaymentTerms {
pub _type: Option<Type>,
pub discount_percent: Option<String>,
pub discount_due_days: Option<f32>,
pub net_due_days: Option<f32>,
}Expand description
PaymentTerms : Terms of the payment for the invoice. The basis of the payment terms is the invoice date.
Fields
_type: Option<Type>The payment term type for the invoice.
discount_percent: Option<String>A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
Pattern : ^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$.
discount_due_days: Option<f32>The number of calendar days from the Base date (Invoice date) until the discount is no longer valid.
net_due_days: Option<f32>The number of calendar days from the base date (invoice date) until the total amount on the invoice is due.
Implementations
sourceimpl PaymentTerms
impl PaymentTerms
sourcepub fn new() -> PaymentTerms
pub fn new() -> PaymentTerms
Terms of the payment for the invoice. The basis of the payment terms is the invoice date.
Trait Implementations
sourceimpl Clone for PaymentTerms
impl Clone for PaymentTerms
sourcefn clone(&self) -> PaymentTerms
fn clone(&self) -> PaymentTerms
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PaymentTerms
impl Debug for PaymentTerms
sourceimpl Default for PaymentTerms
impl Default for PaymentTerms
sourcefn default() -> PaymentTerms
fn default() -> PaymentTerms
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PaymentTerms
impl<'de> Deserialize<'de> for PaymentTerms
sourcefn 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
sourceimpl PartialEq<PaymentTerms> for PaymentTerms
impl PartialEq<PaymentTerms> for PaymentTerms
sourcefn eq(&self, other: &PaymentTerms) -> bool
fn eq(&self, other: &PaymentTerms) -> bool
sourceimpl Serialize for PaymentTerms
impl Serialize for PaymentTerms
impl StructuralPartialEq for PaymentTerms
Auto Trait Implementations
impl RefUnwindSafe for PaymentTerms
impl Send for PaymentTerms
impl Sync for PaymentTerms
impl Unpin for PaymentTerms
impl UnwindSafe for PaymentTerms
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more