mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
dav: Make the get_members function more ergonomic
This commit is contained in:
@@ -28,6 +28,10 @@ impl<T: XmlSerialize + XmlDeserialize> ResourceProp for T {}
|
||||
pub trait ResourcePropName: FromStr {}
|
||||
impl<T: FromStr> ResourcePropName for T {}
|
||||
|
||||
pub trait ResourceName {
|
||||
fn get_name(&self) -> String;
|
||||
}
|
||||
|
||||
pub trait Resource: Clone + Send + 'static {
|
||||
type Prop: ResourceProp + PartialEq + Clone + EnumVariants + PropName + Send;
|
||||
type Error: From<crate::Error>;
|
||||
|
||||
Reference in New Issue
Block a user