help serde disambiguate between numeric quantities and "freeform string"
I don't love this, but i couldn't figure out how to tell TOML's Deserialize to accept an enum of a usize or a string for `quantity`.
This commit is contained in:
parent
d6f3c404b2
commit
b8029db9a9
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ tube_support = {quantity=1}
|
||||||
|
|
||||||
[inputs.silicone_tubing]
|
[inputs.silicone_tubing]
|
||||||
type = "silicone tubing, 6mm OD, 4mm ID"
|
type = "silicone tubing, 6mm OD, 4mm ID"
|
||||||
quantity = "1 meter"
|
amount = "1 meter"
|
||||||
comment = "PVC tube isn't flexible enough. Adjust quantity to suit your application."
|
comment = "PVC tube isn't flexible enough. Adjust quantity to suit your application."
|
||||||
|
|
||||||
[inputs.m4_25_bhcs]
|
[inputs.m4_25_bhcs]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue