public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH proxmox] schema: updater: add blanked implementation for PropertyString
@ 2025-01-13 14:31 Dominik Csapak
  2025-01-14  9:21 ` [pdm-devel] applied: " Wolfgang Bumiller
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2025-01-13 14:31 UTC (permalink / raw)
  To: pdm-devel

so that we can have a property:

```
foo: Option<PropertyString<Bar>>,
```

within a struct that derives `Updater`

Signed-off-by: Dominik Csapak <d.csapak@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



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pdm-devel] applied: [PATCH proxmox] schema: updater: add blanked implementation for PropertyString
  2025-01-13 14:31 [pdm-devel] [PATCH proxmox] schema: updater: add blanked implementation for PropertyString Dominik Csapak
@ 2025-01-14  9:21 ` Wolfgang Bumiller
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bumiller @ 2025-01-14  9:21 UTC (permalink / raw)
  To: Dominik Csapak; +Cc: pdm-devel

applied, thanks

On Mon, Jan 13, 2025 at 03:31:59PM +0100, Dominik Csapak wrote:
> so that we can have a property:
> 
> ```
> foo: Option<PropertyString<Bar>>,
> ```
> 
> within a struct that derives `Updater`
> 
> Signed-off-by: Dominik Csapak <d.csapak@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


_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-14  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-13 14:31 [pdm-devel] [PATCH proxmox] schema: updater: add blanked implementation for PropertyString Dominik Csapak
2025-01-14  9:21 ` [pdm-devel] applied: " Wolfgang Bumiller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal