From bcdfeb3d4e2569e073a34be67f38f57da90be723 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 9 Mar 2021 21:32:18 +0100 Subject: Use LinearLayout for vcard --- src/model/property_groups/address.rs | 2 +- src/model/property_groups/name.rs | 2 +- src/model/property_groups/telephone.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/model/property_groups') diff --git a/src/model/property_groups/address.rs b/src/model/property_groups/address.rs index 00bca0b..e50a59a 100644 --- a/src/model/property_groups/address.rs +++ b/src/model/property_groups/address.rs @@ -1,7 +1,7 @@ use crate::model::input_fields::VCardPropertyInputField; use crate::model::*; -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, Default, PartialEq)] pub struct Address { pub post_office_box: String, pub extension: String, diff --git a/src/model/property_groups/name.rs b/src/model/property_groups/name.rs index eb0d9da..4a4d72c 100644 --- a/src/model/property_groups/name.rs +++ b/src/model/property_groups/name.rs @@ -16,7 +16,7 @@ use crate::model::*; /// /// assert_eq!(name.generate_fn(), String::from("Sir Arthur Charles Clarke, CBE FRAS")); /// ``` -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, Default, PartialEq)] pub struct Name { pub prefix: String, pub first_name: String, diff --git a/src/model/property_groups/telephone.rs b/src/model/property_groups/telephone.rs index 03de4ee..dee28e1 100644 --- a/src/model/property_groups/telephone.rs +++ b/src/model/property_groups/telephone.rs @@ -1,7 +1,7 @@ use crate::model::input_fields::VCardPropertyInputField; use crate::model::*; -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, Default, PartialEq)] pub struct Telephone { pub number: String, pub work: bool, -- cgit v1.2.3