Decodes a value from the given field in a configuration map.
the name of the field to decode
the value to decode
a ConfigResult containing either the decoded value or a sequence of configuration errors
ConfigResult