1 2 3 4 5 6 7 8 9 10 11
pub type Person = PersonType; #[derive(Debug)] pub struct PersonType { pub address: Vec<PersonAddressType>, pub name: String, } #[derive(Debug)] pub struct PersonAddressType { pub street: String, pub city: String, }