summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-10-24 12:00:48 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-10-24 12:02:00 +0200
commita7a90c8dd7c3daeb07838915d827297c7516bd91 (patch)
tree453d22a3f9b92f4dfc221fc54983dab8ca77ab60
parent7a9b14189703c4d1f7d5ba67615609a2e08fffab (diff)
model: Make ids module readable
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--service-person/src/model/city.rs2
-rw-r--r--service-person/src/model/country.rs2
-rw-r--r--service-person/src/model/street.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/service-person/src/model/city.rs b/service-person/src/model/city.rs
index 6a44292..d297344 100644
--- a/service-person/src/model/city.rs
+++ b/service-person/src/model/city.rs
@@ -12,7 +12,7 @@ use crate::schema::cities;
#[derive(Debug, Deserialize, diesel::Queryable, getset::Getters)]
pub struct City {
- id: i32,
+ pub(super) id: i32,
#[getset(get = "pub")]
name: String,
diff --git a/service-person/src/model/country.rs b/service-person/src/model/country.rs
index deab633..4a54224 100644
--- a/service-person/src/model/country.rs
+++ b/service-person/src/model/country.rs
@@ -12,7 +12,7 @@ use crate::schema::countries;
#[derive(Debug, Deserialize, diesel::Queryable, getset::Getters)]
pub struct Country {
- id: i32,
+ pub(super) id: i32,
#[getset(get = "pub")]
name: String,
diff --git a/service-person/src/model/street.rs b/service-person/src/model/street.rs
index 1c78f4b..9b0412a 100644
--- a/service-person/src/model/street.rs
+++ b/service-person/src/model/street.rs
@@ -12,7 +12,7 @@ use crate::schema::streets;
#[derive(Debug, Deserialize, diesel::Queryable, getset::Getters)]
pub struct Street {
- id: i32,
+ pub(super) id: i32,
#[getset(get = "pub")]
name: String,