Struct Snapshot
struct Snapshot {
state: MarketState,
provenance: BTreeMap<CurveId, Arc<CurveProvenance>>,
refits: BTreeMap<CreditCurveId, Arc<SurvivalRefit>>,
curve_refits: BTreeMap<CurveId, Arc<CurveRefit>>,
misdated: BTreeMap<(&'static str, String), ReferenceDateMismatch>,
fetched: Option<Arc<MarketData>>,
source_recipes: BTreeMap<CollateralSpec, Option<CurveRecipe>>,
}Expand description
One date’s snapshot, set aside while the market is at another date: the state as of that date (its fixings excepted, which live in the history), the ladders and refits behind its curves, its misdated record, and the data it was fetched from.
Fields§
§state: MarketState§provenance: BTreeMap<CurveId, Arc<CurveProvenance>>§refits: BTreeMap<CreditCurveId, Arc<SurvivalRefit>>§curve_refits: BTreeMap<CurveId, Arc<CurveRefit>>§misdated: BTreeMap<(&'static str, String), ReferenceDateMismatch>§fetched: Option<Arc<MarketData>>§source_recipes: BTreeMap<CollateralSpec, Option<CurveRecipe>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Snapshot
impl !UnwindSafe for Snapshot
impl Freeze for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
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