pub enum Schedule {
Repeating {
value_type: ValueType,
value: f64,
periods: u32,
},
Custom {
value_type: ValueType,
values: Vec<f64>,
},
}
Variants§
Implementations§
Source§impl Schedule
impl Schedule
pub fn new_repeating(value_type: ValueType, value: f64, periods: u32) -> Self
pub fn new_custom(value_type: ValueType, values: &[f64]) -> Self
pub fn is_payment(&self) -> bool
pub fn is_rate(&self) -> bool
pub fn value_type(&self) -> &ValueType
pub fn value(&self) -> Option<f64>
pub fn get(&self, index: usize) -> f64
pub fn max(&self) -> Option<f64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnwindSafe for Schedule
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