pub struct AllowanceDetails {
pub _type: Type,
pub description: Option<String>,
pub allowance_amount: Box<Money>,
pub tax_details: Option<Vec<TaxDetails>>,
}Expand description
AllowanceDetails : Monetary and tax details of the allowance.
Fields
_type: TypeType of the allowance applied.
description: Option<String>Description of the allowance.
allowance_amount: Box<Money>tax_details: Option<Vec<TaxDetails>>Tax amount details applied on this allowance.
Implementations
sourceimpl AllowanceDetails
impl AllowanceDetails
sourcepub fn new(_type: Type, allowance_amount: Money) -> AllowanceDetails
pub fn new(_type: Type, allowance_amount: Money) -> AllowanceDetails
Monetary and tax details of the allowance.
Trait Implementations
sourceimpl Clone for AllowanceDetails
impl Clone for AllowanceDetails
sourcefn clone(&self) -> AllowanceDetails
fn clone(&self) -> AllowanceDetails
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 AllowanceDetails
impl Debug for AllowanceDetails
sourceimpl Default for AllowanceDetails
impl Default for AllowanceDetails
sourcefn default() -> AllowanceDetails
fn default() -> AllowanceDetails
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AllowanceDetails
impl<'de> Deserialize<'de> for AllowanceDetails
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<AllowanceDetails> for AllowanceDetails
impl PartialEq<AllowanceDetails> for AllowanceDetails
sourcefn eq(&self, other: &AllowanceDetails) -> bool
fn eq(&self, other: &AllowanceDetails) -> bool
sourceimpl Serialize for AllowanceDetails
impl Serialize for AllowanceDetails
impl StructuralPartialEq for AllowanceDetails
Auto Trait Implementations
impl RefUnwindSafe for AllowanceDetails
impl Send for AllowanceDetails
impl Sync for AllowanceDetails
impl Unpin for AllowanceDetails
impl UnwindSafe for AllowanceDetails
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