Function typed_format_version::get_version_from_value
source · [−]pub fn get_version_from_value<V: Deserializer<'static> + 'static>(
value: V
) -> Result<Version, LoadError>where
V::Error: Send + Sync,
Expand description
Parse format.version from an arbitrary value.
The value
parameter may be a struct similar to serde_json::Value
,
serde_yaml::Value
, or toml::Value
.
Errors
Any error returned by the get_format_from_value()
function.