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, in the ONE spelling this crate stores.
- GENERIC_
RELATION - The generic relation, named once so consumers stop repeating the literal.
Functions§
- is_
canonical_ relation - Returns
truewhen the relation is one of the 12 canonical types. - map_
to_ canonical_ relation - Maps an arbitrary relation label to its canonical form, never producing a non-canonical value (GAP-SG-48).
- normalize_
entity_ name - Normalizes an entity name to kebab-case ASCII.
- normalize_
relation - Normalizes a relation string: lowercase + underscores to hyphens.
- 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_
hops_ range_ u32 - Validates
--max-hopsand--depthwhere the argument is au32. - parse_
hops_ range_ usize - Validates
--max-hopsand--depthwhere the argument is ausize. - parse_
k_ range - Validates
-k/--kon every retrieval command. - parse_
list_ limit_ range - Validates
--limiton the commands that page over stored rows. - parse_
quality_ sample_ range - Validates
enrich --quality-sample. - parse_
relation - Clap
value_parserfor--relation: normalizes and validates format. - parse_
sub_ queries_ range - Validates
deep-research --max-sub-queries. - 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.