summaryrefslogtreecommitdiff
path: root/src/viewmodel/mod.rs
diff options
context:
space:
mode:
authorjelemux <jeremias.weber@protonmail.com>2021-01-28 22:24:32 +0100
committerjelemux <jeremias.weber@protonmail.com>2021-01-28 22:24:32 +0100
commit94a0e361e180223adf2bc9760c8810dfa3c2681f (patch)
treed29de5300d0ff0ba636f48eca8df43bb5256b49c /src/viewmodel/mod.rs
parent3f0892368bcf475fdae39f24ef51b82b3013535f (diff)
downloadwasm-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.rs5
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)]