blob: d77da1d15f8370a3024f90a7e6d7eccacef70525 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright (C) 2021-2021 Fuwn
// SPDX-License-Identifier: GPL-3.0-only
#[derive(Queryable, Debug, Clone)]
pub struct Link {
pub long: String,
pub short: String,
pub disabled: bool,
pub ip: String,
pub uses: i32,
}
#[derive(Deserialize, Debug)]
pub struct LinkForm<'a> {
pub long: &'a str,
pub short: &'a str,
pub ip: &'a str,
}
|