dav: Convert is_collection const to function which will make filesystem access easier

This commit is contained in:
Lennart
2025-06-14 15:21:10 +02:00
parent ca5891314c
commit 529f36ad99
8 changed files with 23 additions and 9 deletions

View File

@@ -24,7 +24,9 @@ impl<PR: Resource, P: Principal> Resource for RootResource<PR, P> {
type Error = PR::Error;
type Principal = P;
const IS_COLLECTION: bool = true;
fn is_collection(&self) -> bool {
true
}
fn get_resourcetype(&self) -> Resourcetype {
Resourcetype(&[ResourcetypeInner(