Function vector_common::encode_logfmt::encode_map

pub fn encode_map<V>(
    input: &BTreeMap<KeyString, V>,
) -> Result<String, EncodingError>
where V: Serialize,
Expand description

Serialize the input value map into a logfmt string.

ยงErrors

Returns an EncodingError if any of the keys are not strings.