#![allow(clippy::disallowed_names)]
use hex_conservative as hex;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct Foo {
#[serde(with = "hex::serde")]
pub u: Vec<u8>,
pub v: Vec<u8>,
}
fn main() {
let v = vec![0xde, 0xad, 0xbe, 0xef];
let foo = Foo { u: v.clone(), v };
let ser = serde_json::to_string(&foo).expect("failed to serialize foo");
println!("\nfoo: {}", ser);
}