diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-01-28 17:41:49 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-01-28 17:41:49 +0100 |
commit | 3f0892368bcf475fdae39f24ef51b82b3013535f (patch) | |
tree | 087a0869e618cc37b48e6d462c99bc1b289ddabf /src/viewmodel/mod.rs | |
parent | 4a0c73eebb8dfd6a5543945049175f64b9817c96 (diff) | |
download | wasm-card-3f0892368bcf475fdae39f24ef51b82b3013535f.tar.gz wasm-card-3f0892368bcf475fdae39f24ef51b82b3013535f.tar.bz2 |
try to fix problem with vcard mutable references
Diffstat (limited to 'src/viewmodel/mod.rs')
-rw-r--r-- | src/viewmodel/mod.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/viewmodel/mod.rs b/src/viewmodel/mod.rs index 42ad77b..9dce01c 100644 --- a/src/viewmodel/mod.rs +++ b/src/viewmodel/mod.rs @@ -23,12 +23,13 @@ pub trait VCardPropertyInputObject<P: properties::Property, C: VCardPropertyInpu </div> } } - fn to_vcard_property(&self) -> Result<P, VCardPropertyInputError>; + fn is_empty(&self) -> bool; + fn to_vcard_property(&self) -> Result<P, Error>; } -#[derive(Debug)] -pub struct VCardPropertyInputError { - msg: String, +#[derive(Debug,Clone,PartialEq)] +pub struct Error { + pub msg: String, } pub enum VCardPropertyInputField { |