pub fn optional<T, V>(f: impl Fn(T) -> V, value: Option<T>) -> Valuewhere V: Into<Value>,
Encodes an optional Value using the given encoder, if present.
Value