diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-07 21:43:48 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-07 21:43:48 +0100 |
commit | ad9ba30ed217ec9907d1faf389c321a1dcf5c13a (patch) | |
tree | 7fdadcde26842e4806881492b993b948c1f2032c /src/viewmodel/vcard.rs | |
parent | f88f8d7c7dc87cdf47de95b54cc6e9f8429820a4 (diff) | |
download | wasm-card-ad9ba30ed217ec9907d1faf389c321a1dcf5c13a.tar.gz wasm-card-ad9ba30ed217ec9907d1faf389c321a1dcf5c13a.tar.bz2 |
add organizational 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 565b1ff..0d2d6c4 100644 --- a/src/viewmodel/vcard.rs +++ b/src/viewmodel/vcard.rs @@ -1,3 +1,4 @@ +use crate::viewmodel::organizational::Organizational; use crate::viewmodel::dates::Dates; use crate::viewmodel::telephone::Telephone; use crate::viewmodel::address::Address; @@ -10,6 +11,7 @@ pub struct VCardData { pub addresses: Vec<Address>, pub telephones: Vec<Telephone>, pub datess: Vec<Dates>, + pub organizationals: Vec<Organizational>, } macro_rules! make_vec_adder_fn { @@ -27,10 +29,12 @@ impl VCardData { addresses: Vec::new(), telephones: Vec::new(), datess: Vec::new(), + organizationals: 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 ); + make_vec_adder_fn!( fn add_organizational organizationals => organizational: Organizational ); }
\ No newline at end of file |