diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-05 18:05:16 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-05 18:05:16 +0100 |
commit | fd5b054fe655c81533c8a1138ba55a82a7b9d085 (patch) | |
tree | 2d90466a05356490ed3d15fa19e8dc0fe763499e /src/viewmodel/vcard.rs | |
parent | 87007b8785be959ca7687e2bec7401514e92581d (diff) | |
download | wasm-card-fd5b054fe655c81533c8a1138ba55a82a7b9d085.tar.gz wasm-card-fd5b054fe655c81533c8a1138ba55a82a7b9d085.tar.bz2 |
add date properties
Diffstat (limited to 'src/viewmodel/vcard.rs')
-rw-r--r-- | src/viewmodel/vcard.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/viewmodel/vcard.rs b/src/viewmodel/vcard.rs index 2b81fd8..565b1ff 100644 --- a/src/viewmodel/vcard.rs +++ b/src/viewmodel/vcard.rs @@ -1,3 +1,4 @@ +use crate::viewmodel::dates::Dates; use crate::viewmodel::telephone::Telephone; use crate::viewmodel::address::Address; use crate::viewmodel::name::Name; @@ -8,6 +9,7 @@ pub struct VCardData { pub names: Vec<Name>, pub addresses: Vec<Address>, pub telephones: Vec<Telephone>, + pub datess: Vec<Dates>, } macro_rules! make_vec_adder_fn { @@ -24,9 +26,11 @@ impl VCardData { names: Vec::new(), addresses: Vec::new(), telephones: Vec::new(), + datess: Vec::new(), } } make_vec_adder_fn!( fn add_name names => name: Name ); make_vec_adder_fn!( fn add_address addresses => address: Address ); make_vec_adder_fn!( fn add_telephone telephones => telephone: Telephone ); + make_vec_adder_fn!( fn add_dates datess => dates: Dates ); }
\ No newline at end of file |