proxmox-schema: derive PartialEq for UPID (for GUI)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer
2023-11-20 11:10:22 +01:00
parent eb6df88120
commit 578f994e6b

View File

@ -14,7 +14,7 @@ use crate::{const_regex, ApiStringFormat, ApiType, Schema, StringSchema};
/// Please note that we use tokio, so a single thread can run multiple
/// tasks.
// #[api] - manually implemented API type
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub struct UPID {
/// The Unix PID
pub pid: i32, // really libc::pid_t, but we don't want this as a dependency for proxmox-schema