diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-11-10 18:38:05 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-11-10 18:38:05 -0800 |
commit | 64c9d94476e29724243c6a6488ba4ce41ce24114 (patch) | |
tree | e60929fd529cf81fd32318a98acfe795025878c1 /adenosine-pds/src/models.rs | |
parent | db603c1fa18b19ed220e3ce18383ce1d15117bcc (diff) | |
download | adenosine-64c9d94476e29724243c6a6488ba4ce41ce24114.tar.gz adenosine-64c9d94476e29724243c6a6488ba4ce41ce24114.zip |
pds: basic/partial post thread implementation
Diffstat (limited to 'adenosine-pds/src/models.rs')
-rw-r--r-- | adenosine-pds/src/models.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adenosine-pds/src/models.rs b/adenosine-pds/src/models.rs index 3af780e..6dbe725 100644 --- a/adenosine-pds/src/models.rs +++ b/adenosine-pds/src/models.rs @@ -155,7 +155,7 @@ pub struct PostReply { #[allow(non_snake_case)] #[derive(Debug, serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)] pub struct PostThread { - pub thread: Vec<ThreadItem>, + pub thread: ThreadItem, } #[allow(non_snake_case)] @@ -168,7 +168,7 @@ pub struct ThreadItem { pub record: Value, //pub embed?: RecordEmbed | ExternalEmbed | UnknownEmbed, pub embed: Option<Value>, - pub parent: Box<ThreadItem>, + pub parent: Option<Box<ThreadItem>>, pub replyCount: u64, pub replies: Option<Vec<ThreadItem>>, pub likeCount: u64, |