scalar_const_key

Function scalar_const_key 

Source
fn scalar_const_key(value: &Value) -> Option<String>
Expand description

Render a JSON Schema const scalar (string, number, or bool) as a CUE enum key. CUE enum keys are strings, so non-string scalars are stringified the same way serde_json would print them. Non-scalar values return None.