Struct BasketConstituent
pub struct BasketConstituent {
pub bond: FixedRateBond,
pub weight: f64,
pub initial_price: f64,
pub repo_key: Option<String>,
pub issuer: Option<CreditCurveId>,
}Expand description
One bond in a BondBasket: the bond, its weight as a face multiplier
on the package notional, and the contractual starting clean price per 100
face the first reset is anchored on.
Fields§
§bond: FixedRateBondThe bond.
weight: f64Face of this bond per unit of package notional. Weights need not sum to one — a basket may be levered or partial — but each is positive.
initial_price: f64The starting clean price per 100 face.
repo_key: Option<String>The repo curve this bond is carried on, where it is financed apart
from the package; None carries it on the swap’s own repo curve.
issuer: Option<CreditCurveId>The issuer whose credit this constituent’s return is contingent on:
its return and flows pay only while the issuer survives, and a
default settles the depreciation at the market recovery. None
returns the bond as if it could not default.
Trait Implementations§
§impl Clone for BasketConstituent
impl Clone for BasketConstituent
§fn clone(&self) -> BasketConstituent
fn clone(&self) -> BasketConstituent
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 more§impl Debug for BasketConstituent
impl Debug for BasketConstituent
§impl PartialEq for BasketConstituent
impl PartialEq for BasketConstituent
§fn eq(&self, other: &BasketConstituent) -> bool
fn eq(&self, other: &BasketConstituent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BasketConstituent
Auto Trait Implementations§
impl !RefUnwindSafe for BasketConstituent
impl !UnwindSafe for BasketConstituent
impl Freeze for BasketConstituent
impl Send for BasketConstituent
impl Sync for BasketConstituent
impl Unpin for BasketConstituent
impl UnsafeUnpin for BasketConstituent
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