Skip to main content

Module space_separated

Module space_separated 

Source
Expand description

Serde deserializer for space-separated string lists.

The Datadog Agent passes some list-typed configuration values as space-separated strings when using environment variables (e.g. DD_PROXY_NO_PROXY="host1 host2"), while the same keys appear as YAML sequences in config files. This module provides a deserializer that accepts both representations.

Functionsยง

deserialize_opt_space_separated_or_seq
Deserializes an Option<Vec<String>> from either a sequence or a space-separated string.
deserialize_space_separated_or_seq
Deserializes a Vec<String> from either a sequence or a space-separated string.