1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
use serde::Deserialize; #[derive(Debug, Deserialize, PartialEq)] pub struct StudentSchoolInfoListing { #[serde(rename = "StudentSchoolInfoListing")] pub school_info: SchoolInfo, } #[derive(Debug, Deserialize, PartialEq)] #[serde(rename_all = "PascalCase")] pub struct SchoolInfo { #[serde(rename = "School")] pub school_name: String, pub principal: String, pub school_address: String, pub school_city: String, pub school_state: String, pub school_zip: u32, pub phone: String, #[serde(rename = "URL")] pub url: String, #[serde(rename = "StaffLists")] pub staff_list: StaffList, } #[derive(Debug, Deserialize, PartialEq)] pub struct StaffList { #[serde(rename = "StaffList")] pub staff: Vec<Staff>, } #[derive(Debug, Deserialize, PartialEq)] #[serde(rename_all = "PascalCase")] pub struct Staff { pub name: String, #[serde(rename = "EMail")] pub email: String, pub title: String, pub phone: String, }