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