pub struct Confession {
pub word: String,
pub flag: String,
pub followed: bool,
}Expand description
A truncation confession a tool’s own --help text printed, and what
this extraction did about it (spec §6 rule 2b).
Two states share this one type deliberately, rather than a bare bool:
a confession that was detected is worth recording even when it
couldn’t be followed (an unrecognised word, a failed or refused
follow-up probe) — that is exactly the case the incomplete status
exists to name honestly, and a reader (--doctor, the detail pane’s
footer) needs the word and flag to explain why a tree is capped, not
just that it is.
Fields§
§word: StringThe directive word, taken verbatim from the tool’s own text — e.g.
"all" for curl. Never fabricated, never guessed (spec §6 rule 2b).
flag: StringThe flag the directive printed alongside word — "--help" or
"-h".
followed: boolTrue when the advertised argv (<flag> <word>) was actually
re-probed and this node’s own fields were built from that
document. False means the confession was detected but not
followed — an unrecognised word/shape, a failed probe, or a rule 0
refusal — and this node still reflects the original, truncated
text; the status ladder caps at incomplete for exactly this case.
Trait Implementations§
Source§impl Clone for Confession
impl Clone for Confession
Source§fn clone(&self) -> Confession
fn clone(&self) -> Confession
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more