summaryrefslogtreecommitdiffstats
path: root/src/resp_types.rs
diff options
context:
space:
mode:
authorColin Reeder <vpzomtrrfrt@gmail.com>2020-10-22 17:43:59 -0600
committerColin Reeder <vpzomtrrfrt@gmail.com>2020-10-22 17:43:59 -0600
commit2d73518bc8b89b1e5f2cd638a9a3e2fd13785f92 (patch)
tree6f6cd8517edfe71a38ce425dd908611c297eab58 /src/resp_types.rs
parent95a92e842e448446f353be1ae375e79d50ac9d59 (diff)
Support comment image attachments
Diffstat (limited to 'src/resp_types.rs')
-rw-r--r--src/resp_types.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resp_types.rs b/src/resp_types.rs
index c8e715e..d10dfc7 100644
--- a/src/resp_types.rs
+++ b/src/resp_types.rs
@@ -68,10 +68,17 @@ impl<'a> AsRef<RespMinimalCommentInfo<'a>> for RespThingComment<'a> {
}
#[derive(Deserialize, Debug)]
+pub struct JustURL<'a> {
+ pub url: Cow<'a, str>,
+}
+
+#[derive(Deserialize, Debug)]
pub struct RespPostCommentInfo<'a> {
#[serde(flatten)]
pub base: RespMinimalCommentInfo<'a>,
+ pub attachments: Vec<JustURL<'a>>,
+
#[serde(borrow)]
pub author: Option<RespMinimalAuthorInfo<'a>>,
pub created: Cow<'a, str>,