JSON naar Rust Struct

#[derive(Serialize, Deserialize)]
pub struct Address {
    pub city: String,
    pub zip: String,
}

#[derive(Serialize, Deserialize)]
pub struct Root {
    pub name: String,
    pub age: i64,
    pub address: Address,
}

Inleiding tot het hulpmiddel

Deze tool is een online tool voor het converteren van JSON-strings naar Rust-struct-definities met serde-ondersteuning.