pub enum Shape {
Flag {
flag: String,
location: Location,
scalar: Scalar,
join: Option<Join>,
},
Unreachable(Unsupported),
}Expand description
What one parameter is worth on a command line.
Either the subcommand grows a flag and the request builder knows what to do
with its values, or it grows nothing at all. Everything a flag needs lives on
the variant that has one, so a parameter this CLI cannot supply cannot leave
a flag behind that the request builder would then ignore — which is the shape
Body already has, where one nested property sends a whole body through
--json-body rather than offering dead per-field flags beside it.
Variants§
Flag
The flag this parameter grows, where its value goes, and what the flag
accepts. join is None for a parameter that takes one value, and
Some for a list — a flag that may be given again.
Unreachable(Unsupported)
Nothing a flag carries. The subcommand names the parameter in its long help and grows nothing for it, and the request goes out without it.