mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 02:22:21 +00:00
dav: Outsource PrincipalResource AT to where it's actually needed
This commit is contained in:
@@ -47,10 +47,13 @@ pub struct AddressObjectResource {
|
||||
pub principal: String,
|
||||
}
|
||||
|
||||
impl CommonPropertiesExtension for AddressObjectResource {
|
||||
type PrincipalResource = PrincipalResource;
|
||||
}
|
||||
|
||||
impl Resource for AddressObjectResource {
|
||||
type Prop = AddressObjectPropWrapper;
|
||||
type Error = Error;
|
||||
type PrincipalResource = PrincipalResource;
|
||||
type Principal = User;
|
||||
|
||||
fn get_resourcetype(&self) -> Resourcetype {
|
||||
|
||||
@@ -80,10 +80,13 @@ impl DavPushExtension for AddressbookResource {
|
||||
}
|
||||
}
|
||||
|
||||
impl CommonPropertiesExtension for AddressbookResource {
|
||||
type PrincipalResource = PrincipalResource;
|
||||
}
|
||||
|
||||
impl Resource for AddressbookResource {
|
||||
type Prop = AddressbookPropWrapper;
|
||||
type Error = Error;
|
||||
type PrincipalResource = PrincipalResource;
|
||||
type Principal = User;
|
||||
|
||||
fn get_resourcetype(&self) -> Resourcetype {
|
||||
|
||||
@@ -70,10 +70,13 @@ impl NamedRoute for PrincipalResource {
|
||||
}
|
||||
}
|
||||
|
||||
impl CommonPropertiesExtension for PrincipalResource {
|
||||
type PrincipalResource = Self;
|
||||
}
|
||||
|
||||
impl Resource for PrincipalResource {
|
||||
type Prop = PrincipalPropWrapper;
|
||||
type Error = Error;
|
||||
type PrincipalResource = PrincipalResource;
|
||||
type Principal = User;
|
||||
|
||||
fn get_resourcetype(&self) -> Resourcetype {
|
||||
|
||||
Reference in New Issue
Block a user