diff options
| author | Fuwn <[email protected]> | 2021-05-12 23:48:04 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-12 23:48:04 -0700 |
| commit | 6c2ea68bbef0e1fc0b50b80f113b0ebcdf745a40 (patch) | |
| tree | a2330c4408f17cb1fc637f5263ee1432c1b62c2b /src/structure.rs | |
| download | lime-old-6c2ea68bbef0e1fc0b50b80f113b0ebcdf745a40.tar.xz lime-old-6c2ea68bbef0e1fc0b50b80f113b0ebcdf745a40.zip | |
feat: :star:
Diffstat (limited to 'src/structure.rs')
| -rw-r--r-- | src/structure.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/structure.rs b/src/structure.rs new file mode 100644 index 0000000..1774f0c --- /dev/null +++ b/src/structure.rs @@ -0,0 +1,21 @@ +// Copyleft (ɔ) 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, +} |