Struct ScheduleConventions
pub struct ScheduleConventions {
pub frequency: Period,
pub calendar: Arc<dyn Calendar>,
pub business_day: BusinessDayConvention,
pub roll: RollConvention,
pub stub: StubPeriodType,
}Expand description
The schedule conventions a leg is generated under.
Fields§
§frequency: PeriodThe coupon frequency.
calendar: Arc<dyn Calendar>The calendar boundaries roll on.
business_day: BusinessDayConventionThe business-day convention.
roll: RollConventionThe roll convention.
stub: StubPeriodTypeWhere a stub falls.
Implementations§
§impl ScheduleConventions
impl ScheduleConventions
pub fn generate(
&self,
effective: NaiveDate,
termination: NaiveDate,
) -> Result<Schedule, ScheduleError>
pub fn generate( &self, effective: NaiveDate, termination: NaiveDate, ) -> Result<Schedule, ScheduleError>
The schedule these conventions generate between two dates.
§Errors
ScheduleError when termination is not strictly after effective.
Trait Implementations§
§impl Clone for ScheduleConventions
impl Clone for ScheduleConventions
§fn clone(&self) -> ScheduleConventions
fn clone(&self) -> ScheduleConventions
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 ScheduleConventions
impl !UnwindSafe for ScheduleConventions
impl Freeze for ScheduleConventions
impl Send for ScheduleConventions
impl Sync for ScheduleConventions
impl Unpin for ScheduleConventions
impl UnsafeUnpin for ScheduleConventions
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