mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 15:12:23 +00:00
Add <remove> to PROPPATCH implementation and some refactoring
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user