Struct TriPartyAllocation
pub struct TriPartyAllocation {
pub bond: FixedRateBond,
pub nominal: f64,
pub haircut: f64,
}Expand description
One bond a tri-party agent allocates against the cash, with the haircut the collateral schedule applies to it.
Fields§
§bond: FixedRateBondThe bond allocated.
nominal: f64Its face amount.
haircut: f64The schedule’s haircut on it, in [0, 1): its value counts at
1 − haircut.
Trait Implementations§
§impl Clone for TriPartyAllocation
impl Clone for TriPartyAllocation
§fn clone(&self) -> TriPartyAllocation
fn clone(&self) -> TriPartyAllocation
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 TriPartyAllocation
impl Debug for TriPartyAllocation
§impl PartialEq for TriPartyAllocation
impl PartialEq for TriPartyAllocation
§fn eq(&self, other: &TriPartyAllocation) -> bool
fn eq(&self, other: &TriPartyAllocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TriPartyAllocation
Auto Trait Implementations§
impl !RefUnwindSafe for TriPartyAllocation
impl !UnwindSafe for TriPartyAllocation
impl Freeze for TriPartyAllocation
impl Send for TriPartyAllocation
impl Sync for TriPartyAllocation
impl Unpin for TriPartyAllocation
impl UnsafeUnpin for TriPartyAllocation
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