diff options
-rw-r--r-- | service-person/src/model/city.rs | 2 | ||||
-rw-r--r-- | service-person/src/model/country.rs | 2 | ||||
-rw-r--r-- | service-person/src/model/street.rs | 2 |
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, |