Expand description
Dual-format argument parser: accepts Unix epoch and RFC 3339. Input format parsers (timestamp, range validators).
Constants§
- CANONICAL_
RELATIONS - The 12 well-known relation types from v1.0.0.
Functions§
- is_
canonical_ relation - Returns
truewhen the relation is one of the 12 canonical types. - normalize_
relation - Normalizes a relation string: lowercase + hyphens to underscores.
- parse_
bool_ flexible - Flexible boolean parser for Clap env var integration.
- parse_
expected_ updated_ at - Accepts a Unix epoch (integer >= 0) or RFC 3339 timestamp and returns the Unix epoch.
- parse_
k_ range - Validates
-k/--kforrecallandhybrid-searchto the inclusive range1..=4096. - parse_
relation - Clap
value_parserfor--relation: normalizes and validates format. - validate_
relation_ format - Validates that a normalized relation matches
^[a-z][a-z0-9_]*$. - warn_
if_ non_ canonical - Emits a
tracing::warn!when the relation is not inCANONICAL_RELATIONS.