summaryrefslogtreecommitdiffstats
path: root/service-person/src/model.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-10-24 11:21:11 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-10-24 12:02:00 +0200
commitab66b143d9acca14ac6ca26cf13cd2ec4a34c010 (patch)
tree2f0c37f5a43b055211e5f972868389eb68e4b294 /service-person/src/model.rs
parentac0f83ae012b3eeb3c05d5a04d5f80fc1f7b2af7 (diff)
Split model definition into multiple modules
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'service-person/src/model.rs')
-rw-r--r--service-person/src/model.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/service-person/src/model.rs b/service-person/src/model.rs
deleted file mode 100644
index aa81312..0000000
--- a/service-person/src/model.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-use serde::Deserialize;
-
-#[derive(Debug, Deserialize)]
-pub struct Name(String);
-
-#[derive(Debug, Deserialize)]
-pub struct Age(usize);
-
-#[derive(Debug, Deserialize)]
-pub struct Street(String);
-
-#[derive(Debug, Deserialize)]
-pub struct City(String);
-
-#[derive(Debug, Deserialize)]
-pub struct Country(String);
-
-#[derive(Debug, Deserialize)]
-pub struct Address {
- country: Country,
- city: City,
- street: Street,
- number: usize,
-}
-
-#[derive(Debug, Deserialize)]
-pub struct Person {
- name: Name,
- age: Age,
- addr: Address,
-}
-