Expand description
Fact values and conversion to and from Rust types.
Modules§
- serde_
time - Serde support for time fields in fact structs. Annotate
DateTimefields with#[serde(with = "rust_runes::serde_time")](orserde_time::optionforOption<DateTime<_>>) andFact::from_serializeturns them into time values that rules can compare and pass to the time functions. Without it, chrono serializes times as strings, and they reach rules as strings.
Structs§
- Fact
- A named value rules can refer to, e.g.
RideinRide.Distance > 5000.
Enums§
- Fact
Value - A value rules can read and write. Integers and floats are distinct, as in Grule:
integer literals and arithmetic stay integers, and
/always produces a float.