Struct CreditEvent
pub struct CreditEvent {
pub entity: String,
pub weight: f64,
pub auction_recovery: f64,
pub event_date: NaiveDate,
}Expand description
A credit event on one constituent of an index: the defaulted entity, its weight in the index (a share of the original notional, 1/125 for CDX IG), the recovery the ISDA auction fixed, and the event date.
Fields§
§entity: StringThe defaulted reference entity.
weight: f64Its weight, a share of the original index notional.
auction_recovery: f64The auction’s final price, as a recovery rate.
event_date: NaiveDateThe event date.
Trait Implementations§
§impl Clone for CreditEvent
impl Clone for CreditEvent
§fn clone(&self) -> CreditEvent
fn clone(&self) -> CreditEvent
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 CreditEvent
impl Debug for CreditEvent
§impl PartialEq for CreditEvent
impl PartialEq for CreditEvent
impl StructuralPartialEq for CreditEvent
Auto Trait Implementations§
impl Freeze for CreditEvent
impl RefUnwindSafe for CreditEvent
impl Send for CreditEvent
impl Sync for CreditEvent
impl Unpin for CreditEvent
impl UnsafeUnpin for CreditEvent
impl UnwindSafe for CreditEvent
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