Skip to main content

Module domain

Module domain 

Source
Expand description

Domain newtypes: parse at the boundary, carry validity in the type.

Follows parse-don’t-validate: only fallible constructors build values. Core path APIs take these types by reference so the compiler keeps the proof (see docs/decisions/0006-type-system-posture.md and docs/decisions/0008-domain-types-posture.md for url-only of the four generic domain crates — no chrono/uuid/rust_decimal).

§Naming note

Product commands such as get-item and HTTP helpers such as get_json / get_html use the verb get for the operation, not as a field getter (name() not get_name()).

Structs§

AllowedOrigin
HTTPS (or gated loopback) origin that passed the product SSRF allowlist.
CrateName
Validated crates.io / stdlib crate name.
CrateRef
Crate reference with optional name@version sugar (R2).
ItemPath
Validated rustdoc item path (tokio::runtime::Runtime or runtime/Runtime).
SearchQuery
Validated search query string.
VersionArg
Validated crate version token (latest, channel, or SemVer without v prefix).

Enums§

MatchMode
Text match policy for search-in-crate (GAP-001 / GAP-019).

Functions§

is_stdlib_name
True when name is a Rust standard library crate (std / core / alloc).