LoanOffer::new is the only way in: fields are private and the constructor rejects a negative rate, a zero duration, and a non-positive capital. A zero rate is accepted on purpose — the PTZ (prêt à taux zéro) is a real French instrument. Add thiserror for the typed error, as required for immo-core. Rate and duration take no upper bound for now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| euros.rs | ||
| lib.rs | ||
| loan_offer.rs | ||