diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-01-28 22:24:32 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-01-28 22:24:32 +0100 |
commit | 94a0e361e180223adf2bc9760c8810dfa3c2681f (patch) | |
tree | d29de5300d0ff0ba636f48eca8df43bb5256b49c /src/viewmodel/mod.rs | |
parent | 3f0892368bcf475fdae39f24ef51b82b3013535f (diff) | |
download | wasm-card-94a0e361e180223adf2bc9760c8810dfa3c2681f.tar.gz wasm-card-94a0e361e180223adf2bc9760c8810dfa3c2681f.tar.bz2 |
use different vcard library
Diffstat (limited to 'src/viewmodel/mod.rs')
-rw-r--r-- | src/viewmodel/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/viewmodel/mod.rs b/src/viewmodel/mod.rs index 9dce01c..cc25d68 100644 --- a/src/viewmodel/mod.rs +++ b/src/viewmodel/mod.rs @@ -1,5 +1,5 @@ -use vcard::properties; use yew::prelude::*; +use vobject::Property; use crate::view::VCardPropertyInputComponent; pub mod address; @@ -7,7 +7,7 @@ pub mod name; pub mod telephone; pub mod utility; -pub trait VCardPropertyInputObject<P: properties::Property, C: VCardPropertyInputComponent<P, Self>> +pub trait VCardPropertyInputObject<C: VCardPropertyInputComponent<Self>> where Self: Sized { fn new() -> Self; @@ -24,7 +24,6 @@ pub trait VCardPropertyInputObject<P: properties::Property, C: VCardPropertyInpu } } fn is_empty(&self) -> bool; - fn to_vcard_property(&self) -> Result<P, Error>; } #[derive(Debug,Clone,PartialEq)] |