pub struct TransferPriceCalculation {
pub policy_id: String,
pub base_amount: Decimal,
pub transfer_price: Decimal,
pub markup_amount: Decimal,
pub effective_markup_percent: Decimal,
pub currency: String,
pub calculation_date: NaiveDate,
pub is_arms_length: bool,
}Expand description
Result of a transfer pricing calculation.
Fields§
§policy_id: StringThe policy used for calculation.
base_amount: DecimalOriginal cost/base amount.
transfer_price: DecimalCalculated transfer price.
markup_amount: DecimalMarkup/margin amount.
effective_markup_percent: DecimalEffective markup percentage.
currency: StringCurrency of the amounts.
calculation_date: NaiveDateDate of calculation.
is_arms_length: boolWhether the price is within arm’s length range.
Implementations§
Trait Implementations§
Source§impl Clone for TransferPriceCalculation
impl Clone for TransferPriceCalculation
Source§fn clone(&self) -> TransferPriceCalculation
fn clone(&self) -> TransferPriceCalculation
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 TransferPriceCalculation
impl Debug for TransferPriceCalculation
Source§impl<'de> Deserialize<'de> for TransferPriceCalculation
impl<'de> Deserialize<'de> for TransferPriceCalculation
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 TransferPriceCalculation
impl RefUnwindSafe for TransferPriceCalculation
impl Send for TransferPriceCalculation
impl Sync for TransferPriceCalculation
impl Unpin for TransferPriceCalculation
impl UnwindSafe for TransferPriceCalculation
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