diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-26 16:46:50 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-26 16:46:50 +0100 |
commit | b7875dc4072abeec26f93b3d322d00cecff23cfb (patch) | |
tree | 78c70a075642ec67aa85e1c3dfb04d72e632c3ec /src/model/vcard.rs | |
parent | ac31460bac3c050abe1e45ec975f3537d1937751 (diff) | |
download | wasm-card-b7875dc4072abeec26f93b3d322d00cecff23cfb.tar.gz wasm-card-b7875dc4072abeec26f93b3d322d00cecff23cfb.tar.bz2 |
add communication property
Diffstat (limited to 'src/model/vcard.rs')
-rw-r--r-- | src/model/vcard.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/model/vcard.rs b/src/model/vcard.rs index 24a47ff..4670fe7 100644 --- a/src/model/vcard.rs +++ b/src/model/vcard.rs @@ -1,4 +1,5 @@ use crate::model::property_groups::address::Address; +use crate::model::property_groups::communication::Communication; use crate::model::property_groups::name::Name; use crate::model::property_groups::organizational::Organizational; use crate::model::property_groups::other_identification::OtherIdentification; @@ -10,6 +11,7 @@ pub struct VCardData { pub names: Vec<Name>, pub addresses: Vec<Address>, pub telephones: Vec<Telephone>, + pub communications: Vec<Communication>, pub other_identifications: Vec<OtherIdentification>, pub organizationals: Vec<Organizational>, } @@ -28,6 +30,7 @@ impl VCardData { names: Vec::new(), addresses: Vec::new(), telephones: Vec::new(), + communications: Vec::new(), other_identifications: Vec::new(), organizationals: Vec::new(), } @@ -35,6 +38,7 @@ impl VCardData { 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_communication communications => communication: Communication ); make_vec_adder_fn!( fn add_other_identification other_identifications => other_identification: OtherIdentification ); make_vec_adder_fn!( fn add_organizational organizationals => organizational: Organizational ); } |