aboutsummaryrefslogtreecommitdiff
path: root/src/structures.rs
blob: dceecd2946ac0abfba1977d16f96d1afbe0d1ee4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// The format a valid SQLite thread entry should have.
#[derive(FromForm, Debug, Serialize, Deserialize)]
pub struct Thread {
	pub board: String,
	pub name: String,
	pub comment: String
}

/// The format a valid SQLite thread entry should have.
#[derive(FromForm, Debug, Serialize, Deserialize, PartialEq)]
pub struct Board {
	pub tag: String,
	pub name: String,
	pub nsfw: i32,
	pub disabled: i32
}