pub struct AxisNames {Show 26 fields
pub view: &'static str,
pub format: &'static str,
pub analyze: &'static str,
pub control_budget: &'static str,
pub control_line_limit: &'static str,
pub exclude_ignored: &'static str,
pub only_ignored: &'static str,
pub read_controls: &'static str,
pub scan_depth: &'static str,
pub one_filesystem: &'static str,
pub follow_symlinks: &'static str,
pub include: &'static str,
pub modified_since: &'static str,
pub modified_before: &'static str,
pub kind: &'static str,
pub ignored: &'static str,
pub depth: &'static str,
pub min_share: &'static str,
pub breadth: &'static str,
pub limit: &'static str,
pub sort: &'static str,
pub size: &'static str,
pub words_per_page: &'static str,
pub cache: &'static str,
pub stale_ok: &'static str,
pub watch: &'static str,
}Expand description
What the calling surface calls the knobs a report’s diagnostics name.
The same reason ViewSpec::resolve and AnalysisSet::parse_labeled take a label: a
rule belongs to the library, but the words a caller can act on belong to the surface
they came through. Telling a Python caller to “add –analyze” names a flag that does
not exist in their surface – the defect that made these messages worth moving here in
the first place, reappearing one door over (fdu-4apt).
The view and analyzer axes both, because both diagnostics name both: the view that
cannot be answered, and the analyzer that would answer it. The two control limits,
because the note about refused .gitignore files names the limit that applies them.
The ignored-state selections and the observation switch, because selecting by ignored
state in a scan that reads no .gitignore is refused by naming both.
And every other axis a RequestError names: the value
grammars of the request model reject a value by naming its axis, and the watch
refusals name the knobs a watch cannot honor, so one type states each rule and each
surface supplies only its words.
Fields§
§view: &'static strThe view axis.
format: &'static strThe output format axis.
analyze: &'static strThe analyzer axis.
control_budget: &'static strThe budget on retained .gitignore state.
control_line_limit: &'static strThe limit on one .gitignore line.
exclude_ignored: &'static strThe selection of unignored entries only.
only_ignored: &'static strThe selection of ignored entries only.
read_controls: &'static strThe switch that turns .gitignore observation off.
scan_depth: &'static strThe retention depth of a scan.
one_filesystem: &'static strThe switch that keeps a scan on the root’s filesystem.
follow_symlinks: &'static strThe switch that walks into what a symbolic link points at.
include: &'static strThe patterns an entry must match.
modified_since: &'static strThe inclusive lower bound on modification time.
modified_before: &'static strThe exclusive upper bound on modification time.
kind: &'static strThe entry kinds a selection admits.
ignored: &'static strThe selection by ignored state, as one axis.
depth: &'static strHow deep a rendered tree descends.
The minimum displayed share of the selected root.
breadth: &'static strMaximum child rows per directory.
limit: &'static strHow many rows a view keeps.
sort: &'static strThe ordering key.
size: &'static strThe size metric.
words_per_page: &'static strThe logical-word denominator of a document page.
cache: &'static strThe cache policy.
stale_ok: &'static strThe request to answer from the snapshot alone.
watch: &'static strThe request to repeat the answer as a watch.
Implementations§
Source§impl AxisNames
impl AxisNames
Sourcepub const FLAGS: Self
pub const FLAGS: Self
How the command line spells them.
ignored names the CLI’s one --ignored value; the two specific selection
values are available for diagnostics that prescribe one of them.
follow_symlinks is the one axis this surface cannot set at all, so it keeps the
library’s name: a request carrying it came from a library or open caller, and
naming a --follow-symlinks that does not exist would point them at the wrong door.
Sourcepub const FIELDS: Self
pub const FIELDS: Self
How the library and the Python API spell them, and the default: a Query built
without saying otherwise belongs to a library caller, not to the command line.
view singular, matching the label the binding already passes to
ViewSpec::resolve, so every diagnostic about this axis names it one way. It also
keeps the difference from the command line to the flag dashes alone, which is what
the parity harness’s surface-label class checks.
cache is the one name that is not a field: the Python parameter is cache, but its
refusal has always said invalid cache policy, and this type moved the wording
without changing it.