[pdm-devel] [PATCH proxmox] schema: updater: add blanked implementation for PropertyString
Dominik Csapak
d.csapak at proxmox.com
Mon Jan 13 15:31:59 CET 2025
so that we can have a property:
```
foo: Option<PropertyString<Bar>>,
```
within a struct that derives `Updater`
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
proxmox-schema/src/schema.rs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/proxmox-schema/src/schema.rs b/proxmox-schema/src/schema.rs
index 60799eaa..fcf71b1c 100644
--- a/proxmox-schema/src/schema.rs
+++ b/proxmox-schema/src/schema.rs
@@ -1807,6 +1807,10 @@ impl<T> UpdaterType for Vec<T> {
type Updater = Option<Self>;
}
+impl<T> UpdaterType for crate::property_string::PropertyString<T> {
+ type Updater = Option<Self>;
+}
+
/// Trait signifying that a type contains an API schema.
pub trait ApiType {
const API_SCHEMA: Schema;
--
2.39.5
More information about the pdm-devel
mailing list