blob: 328a950ee4f59809a5edf59386f0f6e334426cce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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,
}
|