use pyo3::prelude::*;
use crate::modules::fx_rollover::{FXRolloverInterestModule, InterestRateRecord};
#[pyo3_stub_gen::derive::gen_stub_pymethods]
#[pymethods]
impl InterestRateRecord {
#[new]
fn py_new(location: String, time: String, value: f64) -> Self {
Self {
location,
time,
value,
}
}
fn __repr__(&self) -> String {
format!("{self:?}")
}
}
#[pyo3_stub_gen::derive::gen_stub_pymethods]
#[pymethods]
impl FXRolloverInterestModule {
#[new]
fn py_new(records: Vec<InterestRateRecord>) -> Self {
Self::new(records)
}
fn __repr__(&self) -> String {
format!("{self:?}")
}
}