JSON zu 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,
}

Einführung in das Tool

Dieses Tool ist ein Online-Tool zum Konvertieren von JSON-Strings in Rust-Struct-Definitionen mit serde-Unterstützung.