Skip to main content

Module result_value

Module result_value 

Source
Expand description

API value for a rule result, ShowData.prefilled, or ShowData.suggestion.

This is the single API-facing value representation shared by all three sites, expanded into every declared unit for measure/ratio. It sits at the crate root (not under evaluation/) because planning::execution_plan::ShowData needs it too, and planning must not import evaluation. The plan/eval-internal representation is the canonical planning::semantics::LiteralValue; this module is the boundary between the two.

Structs§

CalendarResult
Calendar value (a measure whose unit is a calendar unit, e.g. 3 months) on a result.
RangeResult
Both endpoints of a range result.
RuleResultValue
API value shared by flattened crate::evaluation::response::RuleResult, ShowData.prefilled, and ShowData.suggestion.

Enums§

RuleResultValueFailure
Why building a RuleResultValue from a canonical LiteralValue failed.

Functions§

rule_result_value_failure_message
Human-readable veto message for a RuleResultValueFailure.
rule_result_value_from_literal
Build a RuleResultValue from a canonical LiteralValue.