pub fn opt<A>(r: DecodeResult<A>) -> DecodeResult<Option<A>>Expand description
When decoding an optional item, i.e. a Null value has to be
considered, this function will map Null to None and any
other value to Some(value).
pub fn opt<A>(r: DecodeResult<A>) -> DecodeResult<Option<A>>When decoding an optional item, i.e. a Null value has to be
considered, this function will map Null to None and any
other value to Some(value).