aboutsummaryrefslogtreecommitdiff
path: root/src/structures.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/structures.rs')
-rw-r--r--src/structures.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/structures.rs b/src/structures.rs
new file mode 100644
index 0000000..8d0efb3
--- /dev/null
+++ b/src/structures.rs
@@ -0,0 +1,16 @@
+/// The format a valid SQLlite 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 SQLlite 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
+}