diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-17 19:43:30 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-17 19:43:30 +0100 |
commit | d0d42c5ae00560e4464479a98df90ed063a1c773 (patch) | |
tree | 09ffff29b239768422bd3a9e147b75a3b3866a13 /src/model/vcard.rs | |
parent | cb310a66e94db4e0c4f7d0373a670156b012412a (diff) | |
download | wasm-card-d0d42c5ae00560e4464479a98df90ed063a1c773.tar.gz wasm-card-d0d42c5ae00560e4464479a98df90ed063a1c773.tar.bz2 |
change dates to other_identification and add some stuff
Diffstat (limited to 'src/model/vcard.rs')
-rw-r--r-- | src/model/vcard.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/vcard.rs b/src/model/vcard.rs index ee7e28e..185ae71 100644 --- a/src/model/vcard.rs +++ b/src/model/vcard.rs @@ -1,7 +1,7 @@ use crate::model::address::Address; -use crate::model::dates::Dates; use crate::model::name::Name; use crate::model::organizational::Organizational; +use crate::model::other_identification::OtherIdentification; use crate::model::telephone::Telephone; /// Type that represents the data structure of a vcard. @@ -10,7 +10,7 @@ pub struct VCardData { pub names: Vec<Name>, pub addresses: Vec<Address>, pub telephones: Vec<Telephone>, - pub datess: Vec<Dates>, + pub other_identifications: Vec<OtherIdentification>, pub organizationals: Vec<Organizational>, } @@ -28,13 +28,13 @@ impl VCardData { names: Vec::new(), addresses: Vec::new(), telephones: Vec::new(), - datess: Vec::new(), + other_identifications: 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_other_identification other_identifications => other_identification: OtherIdentification ); make_vec_adder_fn!( fn add_organizational organizationals => organizational: Organizational ); } |