Struct RepoMargin
pub struct RepoMargin {
pub exposure: f64,
pub collateral_value: f64,
pub required: f64,
pub excess: f64,
pub haircut: f64,
}Expand description
A repo’s margin position as of a valuation date — readings beside the value, never part of it.
Fields§
§exposure: f64The cash plus the interest accrued to date.
collateral_value: f64The collateral’s value on the margin basis: nominal times its clean or dirty price per 100.
required: f64What the margin ratio requires against the exposure.
excess: f64Collateral value less required: positive is excess, negative a call.
haircut: f641 − 1/margin_ratio.
Trait Implementations§
§impl Clone for RepoMargin
impl Clone for RepoMargin
§fn clone(&self) -> RepoMargin
fn clone(&self) -> RepoMargin
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 RepoMargin
§impl Debug for RepoMargin
impl Debug for RepoMargin
§impl PartialEq for RepoMargin
impl PartialEq for RepoMargin
impl StructuralPartialEq for RepoMargin
Auto Trait Implementations§
impl Freeze for RepoMargin
impl RefUnwindSafe for RepoMargin
impl Send for RepoMargin
impl Sync for RepoMargin
impl Unpin for RepoMargin
impl UnsafeUnpin for RepoMargin
impl UnwindSafe for RepoMargin
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