Struct DepositTemplate
pub struct DepositTemplate {
pub name: String,
pub currency: String,
pub day_count: DayCountFraction,
pub calendar: Arc<dyn Calendar>,
pub business_day_convention: BusinessDayConvention,
}Expand description
The conventions of a money-market deposit (a type = "MoneyMarket" pillar): a
single simple-rate accrual from the reference date to a convention-advanced
maturity. It carries no quote — only the currency and the schedule
conventions needed to turn a pillar tenor (or exact date) into a maturity.
It builds a MoneyMarketDeposit through that
product’s from_template. The group was convention-only until a deposit
existed to build; see the mm module documentation for why that changed.
Fields§
§name: StringTemplate name (doubles as the registry code).
currency: StringThe deposit currency.
day_count: DayCountFractionAccrual day-count.
calendar: Arc<dyn Calendar>Calendar advancing the pillar tenor to its maturity.
business_day_convention: BusinessDayConventionBusiness-day convention applied to that advance.
Trait Implementations§
§impl Clone for DepositTemplate
impl Clone for DepositTemplate
§fn clone(&self) -> DepositTemplate
fn clone(&self) -> DepositTemplate
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 From<DepositTemplate> for AnyTemplate
impl From<DepositTemplate> for AnyTemplate
§fn from(t: DepositTemplate) -> Self
fn from(t: DepositTemplate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DepositTemplate
impl !UnwindSafe for DepositTemplate
impl Freeze for DepositTemplate
impl Send for DepositTemplate
impl Sync for DepositTemplate
impl Unpin for DepositTemplate
impl UnsafeUnpin for DepositTemplate
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