Function ensure_single_value

Source
fn ensure_single_value<'a>(
    keyword: &Keyword,
    value: &'a Value,
) -> Result<&'a String, BridgeError>
Expand description

Ensures that a combination of Keyword and Value uses a Value::Single and returns the value.

ยงErrors

Returns an error, if value is a Value::Array.