diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-04 16:26:56 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-04 16:26:56 +0100 |
commit | 0c8f99f4f58953334731cc195c385d31d8b0f695 (patch) | |
tree | 8d41d47ded008873b28a378fdbc74a9b0257dbf3 /src/viewmodel/vcard.rs | |
parent | 69ceb1f9ec68e41029759a6fcff3168adb6df373 (diff) | |
download | wasm-card-0c8f99f4f58953334731cc195c385d31d8b0f695.tar.gz wasm-card-0c8f99f4f58953334731cc195c385d31d8b0f695.tar.bz2 |
it works!
Diffstat (limited to 'src/viewmodel/vcard.rs')
-rw-r--r-- | src/viewmodel/vcard.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/viewmodel/vcard.rs b/src/viewmodel/vcard.rs index 0225590..2b81fd8 100644 --- a/src/viewmodel/vcard.rs +++ b/src/viewmodel/vcard.rs @@ -1,4 +1,3 @@ -use yewtil::ptr::Irc; use crate::viewmodel::telephone::Telephone; use crate::viewmodel::address::Address; use crate::viewmodel::name::Name; @@ -6,9 +5,9 @@ use crate::viewmodel::name::Name; /// Type that represents the data structure of a vcard. #[derive(Clone, Debug)] pub struct VCardData { - pub names: Vec<Irc<Name>>, - pub addresses: Vec<Irc<Address>>, - pub telephones: Vec<Irc<Telephone>>, + pub names: Vec<Name>, + pub addresses: Vec<Address>, + pub telephones: Vec<Telephone>, } macro_rules! make_vec_adder_fn { @@ -27,7 +26,7 @@ impl VCardData { telephones: Vec::new(), } } - make_vec_adder_fn!( fn add_name names => name: Irc<Name> ); - make_vec_adder_fn!( fn add_address addresses => address: Irc<Address> ); - make_vec_adder_fn!( fn add_telephone telephones => telephone: Irc<Telephone> ); + 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 ); }
\ No newline at end of file |