diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2021-03-09 21:32:18 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2021-03-09 21:32:18 +0100 |
commit | bcdfeb3d4e2569e073a34be67f38f57da90be723 (patch) | |
tree | 918fe2f00bf4eefb373afbbe9d10e522c80086d2 /src/model/property_groups | |
parent | 4d2edd797d5f8054284bc990371f28e918ea044b (diff) | |
download | wasm-card-main.tar.gz wasm-card-main.tar.bz2 |
Use LinearLayout for vcardmain
Diffstat (limited to 'src/model/property_groups')
-rw-r--r-- | src/model/property_groups/address.rs | 2 | ||||
-rw-r--r-- | src/model/property_groups/name.rs | 2 | ||||
-rw-r--r-- | src/model/property_groups/telephone.rs | 2 |
3 files changed, 3 insertions, 3 deletions
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, |