summaryrefslogtreecommitdiff
path: root/src/viewmodel/utility.rs
diff options
context:
space:
mode:
authorjelemux <jeremias.weber@protonmail.com>2021-02-09 22:38:40 +0100
committerjelemux <jeremias.weber@protonmail.com>2021-02-09 22:38:40 +0100
commit9df3ff8d633a18e934d4e62b0e2e718620760552 (patch)
tree9d84d5fd3e418807905b3da928c1a2c3664b0272 /src/viewmodel/utility.rs
parentad9ba30ed217ec9907d1faf389c321a1dcf5c13a (diff)
downloadwasm-card-9df3ff8d633a18e934d4e62b0e2e718620760552.tar.gz
wasm-card-9df3ff8d633a18e934d4e62b0e2e718620760552.tar.bz2
add file input field, include file as data url in vcard
Diffstat (limited to 'src/viewmodel/utility.rs')
-rw-r--r--src/viewmodel/utility.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/viewmodel/utility.rs b/src/viewmodel/utility.rs
index 4a82a42..cb581ac 100644
--- a/src/viewmodel/utility.rs
+++ b/src/viewmodel/utility.rs
@@ -38,4 +38,10 @@ pub enum DownloadOption {
PDF,
VCard,
QrCode,
+}
+
+#[derive(Clone,Debug,PartialEq)]
+pub struct File {
+ pub name: String,
+ pub content: String,
} \ No newline at end of file