Function typed_format_version::get_format_from_value
source · [−]pub fn get_format_from_value<V: Deserializer<'static> + 'static>(
value: V
) -> Result<Format, LoadError>where
V::Error: Send + Sync,
Expand description
Parse the format section from an arbitrary deserializable value.
The value
parameter may be a struct similar to serde_json::Value
,
serde_yaml::Value
, or toml::Value
.
Errors
LoadError::Format
if the value cannot be parsed into
a structure containing a valid “format” substructure.