aboutsummaryrefslogtreecommitdiff
path: root/src/structure.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-12 23:48:04 -0700
committerFuwn <[email protected]>2021-05-12 23:48:04 -0700
commitc7a282bd3f96c0e3cc0807aabd5b7104df6effc9 (patch)
tree64818c0add5762ba1ae83c8d9e7aa7bdb605f6f2 /src/structure.rs
downloadlime-main.tar.xz
lime-main.zip
feat: :star:HEADmain
Diffstat (limited to 'src/structure.rs')
-rw-r--r--src/structure.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/structure.rs b/src/structure.rs
new file mode 100644
index 0000000..328a950
--- /dev/null
+++ b/src/structure.rs
@@ -0,0 +1,21 @@
+// Copyright (C) 2021-2021 Fuwn
+// SPDX-License-Identifier: GPL-3.0-only
+
+#[derive(Serialize, Deserialize, Debug)]
+pub struct PostCreateShort {
+ pub long: String,
+ pub short: String,
+}
+
+#[derive(askama::Template)]
+#[template(path = "text.html")]
+pub struct TextTemplate<'a> {
+ pub text: &'a str,
+}
+
+#[derive(Serialize, Deserialize)]
+pub struct StatisticsApi {
+ pub long: String,
+ pub disabled: bool,
+ pub uses: i32,
+}