refactor from file to resource

This commit is contained in:
Lennart
2024-09-29 14:42:56 +02:00
parent e9e16a71f0
commit f2f66c95d2
8 changed files with 25 additions and 25 deletions

View File

@@ -64,7 +64,7 @@ impl Resource for RootResource {
impl ResourceService for RootResourceService {
type PathComponents = ();
type MemberType = RootResource;
type File = RootResource;
type Resource = RootResource;
type Error = Error;
async fn new(
@@ -77,13 +77,13 @@ impl ResourceService for RootResourceService {
})
}
async fn get_file(&self) -> Result<Self::File, Self::Error> {
async fn get_resource(&self) -> Result<Self::Resource, Self::Error> {
Ok(RootResource {
principal: self.principal.to_owned(),
})
}
async fn save_file(&self, _file: Self::File) -> Result<(), Self::Error> {
async fn save_resource(&self, _file: Self::Resource) -> Result<(), Self::Error> {
Err(Error::NotImplemented)
}
}