From a7a90c8dd7c3daeb07838915d827297c7516bd91 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Oct 2021 12:00:48 +0200 Subject: model: Make ids module readable Signed-off-by: Matthias Beyer --- service-person/src/model/city.rs | 2 +- service-person/src/model/country.rs | 2 +- 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, -- cgit v1.2.3