mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 10:32:19 +00:00
dav: Outsource PrincipalResource AT to where it's actually needed
This commit is contained in:
@@ -28,6 +28,8 @@ pub enum CommonPropertiesProp {
|
||||
}
|
||||
|
||||
pub trait CommonPropertiesExtension: Resource {
|
||||
type PrincipalResource: NamedRoute;
|
||||
|
||||
fn get_prop(
|
||||
&self,
|
||||
rmap: &ResourceMap,
|
||||
@@ -66,5 +68,3 @@ pub trait CommonPropertiesExtension: Resource {
|
||||
Err(crate::Error::PropReadOnly)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Resource> CommonPropertiesExtension for T {}
|
||||
|
||||
Reference in New Issue
Block a user