Function accrued_fixed_leg
fn accrued_fixed_leg(
currency: Currency,
effective: NaiveDate,
maturity: NaiveDate,
notional: f64,
fixed_rate: f64,
day_count: DayCountFraction,
accrual: f64,
compounding: AccrualCompounding,
direction: Direction,
) -> Leg