summaryrefslogtreecommitdiffstats
path: root/src/comment.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-11-13 20:00:15 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2024-11-13 20:00:15 +0000
commitb7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6 (patch)
tree280a31f5887aafdaa200a2b5f4c05ff106d9e365 /src/comment.rs
downloadcritch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.tar.gz
critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.tar.bz2
critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.zip
initial commit
Diffstat (limited to 'src/comment.rs')
-rw-r--r--src/comment.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/comment.rs b/src/comment.rs
new file mode 100644
index 0000000..77b0fc0
--- /dev/null
+++ b/src/comment.rs
@@ -0,0 +1,12 @@
+pub struct Comment {
+ /// id of the comment in the thread
+ id: Option<usize>,
+ /// text of the comment
+ text: String,
+ /// thread comment is in
+ thread: usize,
+ /// comments that are mentioned by the comment
+ in_reply_to: Vec<usize>,
+ /// comments that mention the comment
+ mentioned_by: Vec<usize>,
+}