Function maybe

Source
pub fn maybe<A>(r: DecodeResult<A>) -> DecodeResult<Option<A>>
Expand description

When decoding an item which may be Undefined this function will map Undefined to None and any other value to Some(value).