From: Dominik Csapak <d.csapak@proxmox.com>
To: Wolfgang Bumiller <w.bumiller@proxmox.com>
Cc: pdm-devel@lists.proxmox.com
Subject: Re: [pdm-devel] [PATCH yew-comp 1/1] status: implement PartialEq and Clone for Status
Date: Tue, 15 Apr 2025 13:52:22 +0200 [thread overview]
Message-ID: <704368b2-74a7-4c87-8e0c-c4b6d81284b3@proxmox.com> (raw)
In-Reply-To: <mdsf5cjvmwlrlwyxw6kqpo5pzgxxeo6xsqxz2i3la3cqraugku@p6v2wtpallgk>
On 4/14/25 16:50, Wolfgang Bumiller wrote:
> On Fri, Apr 11, 2025 at 04:05:17PM +0200, Dominik Csapak wrote:
>> this is sensible to have, e.g. when we want to have the status structs
>> as parto of a type for a store
>
> I'd argue these should all be:
>
> #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
>
sure, makes sense.
is a follow up enough or should I resend the patch ( or whole series?)
>>
>> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
>> ---
>> src/status.rs | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/src/status.rs b/src/status.rs
>> index 9d951c5..ab77a15 100644
>> --- a/src/status.rs
>> +++ b/src/status.rs
>> @@ -7,6 +7,7 @@ use pwt::{
>>
>> /// Used to represent a Status of some resource or component, e.g.
>> /// if a PVE node is online or not.
>> +#[derive(PartialEq, Clone)]
>> pub enum Status {
>> Success,
>> Warning,
>> @@ -27,6 +28,7 @@ impl Status {
>> }
>>
>> /// Used to represent the state of a Node, being PVE or PBS
>> +#[derive(PartialEq, Clone)]
>> pub enum NodeState {
>> Online,
>> Offline,
>> @@ -45,6 +47,7 @@ impl NodeState {
>> }
>>
>> /// Used to represent the state of a PVE guest, such as a VM
>> +#[derive(PartialEq, Clone)]
>> pub enum GuestState {
>> Running,
>> Paused,
>> @@ -67,6 +70,7 @@ impl GuestState {
>> }
>>
>> /// Used to represent the state of a Storage or Datastore
>> +#[derive(PartialEq, Clone)]
>> pub enum StorageState {
>> Available,
>> Unavailable,
>> --
>> 2.39.5
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2025-04-15 11:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-11 14:05 [pdm-devel] [PATCH yew-comp/datacenter-manager] some ui improvements Dominik Csapak
2025-04-11 14:05 ` [pdm-devel] [PATCH yew-comp 1/1] status: implement PartialEq and Clone for Status Dominik Csapak
2025-04-14 14:50 ` Wolfgang Bumiller
2025-04-15 11:52 ` Dominik Csapak [this message]
2025-04-15 12:57 ` Wolfgang Bumiller
2025-04-11 14:05 ` [pdm-devel] [PATCH datacenter-manager 1/3] ui: improve keyboard navigation for search box Dominik Csapak
2025-04-11 14:05 ` [pdm-devel] [PATCH datacenter-manager 2/3] ui: dashboard: refactor remotes panel Dominik Csapak
2025-04-11 14:05 ` [pdm-devel] [PATCH datacenter-manager 3/3] ui: dashboard: refactor guest panel Dominik Csapak
2025-04-16 9:01 ` [pdm-devel] applied-series: [PATCH yew-comp/datacenter-manager] some ui improvements Wolfgang Bumiller
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=704368b2-74a7-4c87-8e0c-c4b6d81284b3@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
--cc=w.bumiller@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