Struct CreditLinkedSwapDiagnostics
pub struct CreditLinkedSwapDiagnostics {
pub independent: f64,
pub contingent: f64,
pub contingent_accrual: f64,
pub default_payments: f64,
pub recovery_payments: f64,
pub npv: f64,
}Expand description
What a credit-linked swap’s value is made of, in the trade currency — five parts, signed as they enter the value.
Fields§
§independent: f64The independent legs: discounted, whatever happens.
contingent: f64The contingent legs’ scheduled payments, survival-weighted.
contingent_accrual: f64The contingent legs’ accrual settled on default.
default_payments: f64The default legs: paid on default, scaled by the loss.
recovery_payments: f64The recovery legs: paid on default, scaled by the recovery.
npv: f64The sum: the swap’s value.
Trait Implementations§
§impl Clone for CreditLinkedSwapDiagnostics
impl Clone for CreditLinkedSwapDiagnostics
§fn clone(&self) -> CreditLinkedSwapDiagnostics
fn clone(&self) -> CreditLinkedSwapDiagnostics
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 moreimpl Copy for CreditLinkedSwapDiagnostics
§impl Debug for CreditLinkedSwapDiagnostics
impl Debug for CreditLinkedSwapDiagnostics
§impl PartialEq for CreditLinkedSwapDiagnostics
impl PartialEq for CreditLinkedSwapDiagnostics
§fn eq(&self, other: &CreditLinkedSwapDiagnostics) -> bool
fn eq(&self, other: &CreditLinkedSwapDiagnostics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreditLinkedSwapDiagnostics
Auto Trait Implementations§
impl Freeze for CreditLinkedSwapDiagnostics
impl RefUnwindSafe for CreditLinkedSwapDiagnostics
impl Send for CreditLinkedSwapDiagnostics
impl Sync for CreditLinkedSwapDiagnostics
impl Unpin for CreditLinkedSwapDiagnostics
impl UnsafeUnpin for CreditLinkedSwapDiagnostics
impl UnwindSafe for CreditLinkedSwapDiagnostics
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