[pdm-devel] applied: [PATCH proxmox] schema: updater: add blanked implementation for PropertyString

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jan 14 10:21:09 CET 2025


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 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