resourcetype: Use tuple struct

This commit is contained in:
Lennart
2025-01-05 16:44:31 +01:00
parent 82f52cc0ab
commit 2eb6b1934d
8 changed files with 67 additions and 84 deletions

View File

@@ -59,18 +59,16 @@ impl Resource for PrincipalResource {
type PrincipalResource = PrincipalResource;
fn get_resourcetype(&self) -> Resourcetype {
Resourcetype {
inner: &[
ResourcetypeInner {
ns: rustical_dav::namespace::NS_DAV,
name: "collection",
},
ResourcetypeInner {
ns: rustical_dav::namespace::NS_DAV,
name: "principal",
},
],
}
Resourcetype(&[
ResourcetypeInner {
ns: rustical_dav::namespace::NS_DAV,
name: "collection",
},
ResourcetypeInner {
ns: rustical_dav::namespace::NS_DAV,
name: "principal",
},
])
}
fn get_prop(