Add <remove> to PROPPATCH implementation and some refactoring

This commit is contained in:
Lennart
2024-06-23 16:42:44 +02:00
parent 326aa9a895
commit 55e6faf822
7 changed files with 108 additions and 75 deletions

View File

@@ -23,7 +23,13 @@ pub trait Resource: Clone {
fn get_path(&self) -> &str;
fn set_prop(&mut self, prop: Self::Prop) -> Result<(), crate::Error>;
fn set_prop(&mut self, _prop: Self::Prop) -> Result<(), crate::Error> {
Err(crate::Error::PropReadOnly)
}
fn remove_prop(&mut self, _prop: Self::PropName) -> Result<(), crate::Error> {
Err(crate::Error::PropReadOnly)
}
}
pub trait InvalidProperty {