pub fn parse_delay_spec_value(v: &Value) -> Result<DelaySpec, String>Expand description
Parse a YAML/JSON value into a DelaySpec.
Accepted:
- non-empty string →
Before(<string>) - object with
beforeand/orafterkeys →BeforeAfter
Rejected (descriptive error):
- empty string
- empty object
- object with unknown keys
- object whose
before/aftervalues aren’t strings - null, arrays, numbers, booleans
Public for unit tests + smoke validation.