pub struct ConfessionSnapshot {
pub word: String,
pub flag: String,
pub followed: bool,
}Expand description
Snapshot form of crate::node::Confession.
Fields§
§word: StringThe directive word, verbatim from the tool’s own text.
flag: StringThe flag printed alongside it ("--help" or "-h").
followed: boolTrue when the advertised argv was actually re-probed and this node’s fields reflect that document; false when the confession was detected but not followed (an unrecognised word, a failed probe, a rule 0 refusal) and the node still reflects the truncated text.
Always written, unlike this module’s other booleans. The
omit-when-false rule the rest of the format follows ([is_false])
rests on false being the unremarkable default, so its absence
says nothing worth reading. Here the polarity is the other way
round: false is the noteworthy state — it is precisely what
caps a tree at incomplete — and encoding the interesting half of
a two-state field as a missing key would make the fixture that
exists to demonstrate that state (corpus/curl/8.5.0) show it by
omission, indistinguishable on sight from a snapshot written
before this field existed.
Trait Implementations§
Source§impl Clone for ConfessionSnapshot
impl Clone for ConfessionSnapshot
Source§fn clone(&self) -> ConfessionSnapshot
fn clone(&self) -> ConfessionSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more