data/structures: derive PartialEq macro

* enable PartialEq needed from new wayland client backend

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-08-15 19:30:32 +02:00
parent b6b12c45bb
commit eb7a3608d7

View File

@@ -11,7 +11,7 @@ use serde::{Deserialize, Serialize};
/// An enumeration of valid policy codes. /// An enumeration of valid policy codes.
/// right now, only "AS" is used. /// right now, only "AS" is used.
#[derive(Debug, Clone, Copy, Deserialize, Serialize)] #[derive(Debug, Clone, Copy, Deserialize, PartialEq, Serialize)]
pub enum PolicyCode { pub enum PolicyCode {
/// Allianz Sachversicherung /// Allianz Sachversicherung
AS AS
@@ -66,7 +66,7 @@ impl Default for CommunicationType {
} }
/// Status of a given policy data element. /// Status of a given policy data element.
#[derive(Debug, Clone, Deserialize, Serialize)] #[derive(Debug, Clone, Deserialize, PartialEq, Serialize)]
pub enum Status { pub enum Status {
/// Active -> the policy is active an supported /// Active -> the policy is active an supported
Active, Active,
@@ -141,7 +141,7 @@ pub struct HarmType {
} }
/// Structure used to verify a policy data element. /// Structure used to verify a policy data element.
#[derive(Default, Debug, Clone, Deserialize, Serialize)] #[derive(Default, Debug, Clone, Deserialize, PartialEq, Serialize)]
pub struct PolicyCheck { pub struct PolicyCheck {
/// Versicherungsschein-Prüfnummer /// Versicherungsschein-Prüfnummer
pub policy_check_number: String, pub policy_check_number: String,