diff options
author | 2024-11-13 20:00:15 +0000 | |
---|---|---|
committer | 2024-11-13 20:00:15 +0000 | |
commit | b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6 (patch) | |
tree | 280a31f5887aafdaa200a2b5f4c05ff106d9e365 /src/comment.rs | |
download | critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.tar.gz critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.tar.bz2 critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.zip |
initial commit
Diffstat (limited to 'src/comment.rs')
-rw-r--r-- | src/comment.rs | 12 |
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>, +} |