pub enum CalculatorStatus {
Active {
ruleset_id: &'static str,
},
NotYetEffective {
ruleset_id: &'static str,
from: NaiveDate,
},
AwaitingInstrument {
ruleset_id: &'static str,
empowerment: &'static str,
},
Expired {
ruleset_id: &'static str,
until: NaiveDate,
},
NotImplemented,
ReportingOnly,
UnknownRuleset {
ruleset_id: &'static str,
},
}Expand description
Whether a calculator can be used for a product whose law was fixed on a given date.
Variants§
Active
Implemented and in force on the queried date.
NotYetEffective
Implemented, in force, but only from a later date than the one queried.
AwaitingInstrument
Implemented, but the instrument that would date it has not entered into force, so it has no application date at all.
Expired
Implemented, but its effective period has ended.
NotImplemented
No ruleset is implemented for this methodology.
ReportingOnly
No quantitative methodology is mandated.
UnknownRuleset
The entry names a ruleset id that no longer exists in all_rulesets().
Surfaced rather than panicked so a status view degrades loudly instead of
dying; the drift guard in the test module fails on it.
Trait Implementations§
Source§impl Clone for CalculatorStatus
impl Clone for CalculatorStatus
Source§fn clone(&self) -> CalculatorStatus
fn clone(&self) -> CalculatorStatus
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 moreSource§impl Debug for CalculatorStatus
impl Debug for CalculatorStatus
Source§impl PartialEq for CalculatorStatus
impl PartialEq for CalculatorStatus
impl StructuralPartialEq for CalculatorStatus
Auto Trait Implementations§
impl Freeze for CalculatorStatus
impl RefUnwindSafe for CalculatorStatus
impl Send for CalculatorStatus
impl Sync for CalculatorStatus
impl Unpin for CalculatorStatus
impl UnsafeUnpin for CalculatorStatus
impl UnwindSafe for CalculatorStatus
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