Struct RepoTemplate
pub struct RepoTemplate {
pub name: String,
pub currency: String,
pub day_count: DayCountFraction,
pub calendar: Arc<dyn Calendar>,
pub business_day_convention: BusinessDayConvention,
pub overnight_index: String,
pub margin_basis: PriceBasis,
}Expand description
The conventions of one general-collateral repo market.
Fields§
§name: StringTemplate name (doubles as the registry code).
currency: StringThe cash currency.
day_count: DayCountFractionThe money-market accrual basis.
calendar: Arc<dyn Calendar>The calendar a tenor is advanced on.
business_day_convention: BusinessDayConventionThe business-day convention of that advance.
overnight_index: StringThe overnight index a floating repo compounds, by registry code — and whose discount curve the GC spread is marked over.
margin_basis: PriceBasisWhether the margin ratio applies to the clean or the dirty price.
Implementations§
Trait Implementations§
§impl Clone for RepoTemplate
impl Clone for RepoTemplate
§fn clone(&self) -> RepoTemplate
fn clone(&self) -> RepoTemplate
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for RepoTemplate
impl !UnwindSafe for RepoTemplate
impl Freeze for RepoTemplate
impl Send for RepoTemplate
impl Sync for RepoTemplate
impl Unpin for RepoTemplate
impl UnsafeUnpin for RepoTemplate
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