summaryrefslogtreecommitdiffstats
path: root/person-api-types/src/lib.rs
blob: aa0af0aa57403b29a2d2245e8185acce2fdedbf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub mod v1 {
    pub mod person {
        #[derive(Debug, serde::Serialize, serde::Deserialize)]
        pub struct PersonCreateRequestData {
            pub name: String,
            pub age: i32,

            pub country: String,
            pub city: String,
            pub street: String,
            pub number: i32,
        }

        #[derive(Debug, serde::Serialize, serde::Deserialize)]
        pub struct PersonCreateResponse {
            pub id: i32
        }
    }
}