make attributes private

This commit is contained in:
Lennart
2024-11-04 20:07:57 +01:00
parent 05bd8f2aa0
commit 2ff27814b7
4 changed files with 14 additions and 22 deletions

View File

@@ -21,10 +21,9 @@ use std::sync::Arc;
use strum::{EnumString, VariantNames};
pub struct AddressbookResourceService<AS: AddressbookStore + ?Sized> {
pub addr_store: Arc<AS>,
pub path: String,
pub principal: String,
pub addressbook_id: String,
addr_store: Arc<AS>,
principal: String,
addressbook_id: String,
}
#[derive(EnumString, VariantNames, Clone)]
@@ -220,7 +219,6 @@ impl<AS: AddressbookStore + ?Sized> ResourceService for AddressbookResourceServi
.into_inner();
Ok(Self {
path: req.path().to_owned(),
principal: path_components.0,
addressbook_id: path_components.1,
addr_store,