diff options
Diffstat (limited to 'src/resp_types.rs')
-rw-r--r-- | src/resp_types.rs | 7 |
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>, |