fn decode_value(v: Option<&Value>) -> Option<Vec<u8>> {
    if let Some(Value::String(v)) = v {
        if let Ok(decoded) = base64::decode(&v) {
            Some(decoded)
        } else {
            None
        }
    } else {
        None
    }
}
/// Helper convert a serde_json::Value as a String into a binary value.
Helper convert a serde_json::Value as a String into a binary value.
Helper convert a serde_json :: Value as a String into a binary value .
fn decode_value(v: Option<&Value>) -> Option<Vec<u8>> {
    if let Some(Value::String(v)) = v {
        if let Ok(decoded) = base64::decode(&v) {
            Some(decoded)
        } else {
            None
        }
    } else {
        None
    }
}
fn decode_value ( v : Option < & Value > ) -> Option < Vec < u8 > > { if let Some ( Value :: String ( v ) ) = v { if let Ok ( decoded ) = base64 :: decode ( & v ) { Some ( decoded ) } else { None } } else { None } }
Helper convert a serde_json::Value as a String into a binary value.
Helper convert a serde_json :: Value as a String into a binary value .
v
Option<&Value>
v
Option<&Value>