pub struct CdsResults {
pub instrument: InstrumentResults,
pub fair_spread: Option<Rate>,
pub fair_upfront: Option<Rate>,
pub coupon_leg_bps: Option<Real>,
pub coupon_leg_npv: Option<Real>,
pub default_leg_npv: Option<Real>,
pub upfront_bps: Option<Real>,
pub upfront_npv: Option<Real>,
pub accrual_rebate_npv: Option<Real>,
}Expand description
Results returned by a credit-default-swap pricing engine (the C++
CreditDefaultSwap::results, creditdefaultswap.hpp:331-342).
A result the engine did not provide is None, the C++ Null<Real> /
Null<Rate> sentinel reset restores; the matching
accessor on the instrument then reports it as not available.
Fields§
§instrument: InstrumentResultsThe instrument-level results (NPV and the rest).
fair_spread: Option<Rate>The spread that prices the contract at zero.
fair_upfront: Option<Rate>The upfront that prices the contract at zero.
coupon_leg_bps: Option<Real>The premium leg’s sensitivity to a one-basis-point spread move.
coupon_leg_npv: Option<Real>The premium leg’s NPV.
default_leg_npv: Option<Real>The protection leg’s NPV.
upfront_bps: Option<Real>The upfront payment’s sensitivity to a one-basis-point upfront move.
upfront_npv: Option<Real>The upfront payment’s NPV.
accrual_rebate_npv: Option<Real>The accrual rebate’s NPV.
Trait Implementations§
Source§impl Default for CdsResults
impl Default for CdsResults
Source§fn default() -> CdsResults
fn default() -> CdsResults
Returns the “default value” for a type. Read more
Source§impl Results for CdsResults
impl Results for CdsResults
Source§fn as_instrument_results(&self) -> Option<&InstrumentResults>
fn as_instrument_results(&self) -> Option<&InstrumentResults>
The instrument-level slice of the bundle, when the bundle carries one. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CdsResults
impl !Send for CdsResults
impl !Sync for CdsResults
impl !UnwindSafe for CdsResults
impl Freeze for CdsResults
impl Unpin for CdsResults
impl UnsafeUnpin for CdsResults
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