From: Wolfgang Bumiller <w.bumiller@proxmox.com>
To: Dominik Csapak <d.csapak@proxmox.com>
Cc: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] applied: [PATCH proxmox] schema: updater: add blanked implementation for PropertyString
Date: Tue, 14 Jan 2025 10:21:09 +0100 [thread overview]
Message-ID: <rdlhtzij7ttry6foarhphgf2zquuhurcbvtu3h7qsmvul3vg4d@byjoff6yfwvo> (raw)
In-Reply-To: <20250113143159.2933689-1-d.csapak@proxmox.com>
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
prev parent reply other threads:[~2025-01-14 9:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 14:31 [pdm-devel] " Dominik Csapak
2025-01-14 9:21 ` Wolfgang Bumiller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rdlhtzij7ttry6foarhphgf2zquuhurcbvtu3h7qsmvul3vg4d@byjoff6yfwvo \
--to=w.bumiller@proxmox.com \
--cc=d.csapak@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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