From: Simon Tatham Date: Sat, 23 Dec 2023 10:16:33 +0000 (+0000) Subject: Self-reference to subthings via Box X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=184f40bef1addb7dfa2d4231ef10f096e15fe3f3;p=mastodonochrome.git Self-reference to subthings via Box --- diff --git a/src/main.rs b/src/main.rs index 4d06536..bb334a8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ use serde::{Deserialize, Serialize}; use serde_json::Result; +use std::boxed::Box; use std::option::Option; #[derive(Serialize, Deserialize, Debug)] @@ -21,7 +22,7 @@ struct Account { group: bool, discoverable: Option, noindex: Option, - // moved: Option (!), + moved: Option>, suspended: Option, limited: Option, created_at: String, // FIXME: sort out dates! @@ -52,7 +53,7 @@ struct Status { url: String, in_reply_to_id: Option, in_reply_to_account_id: Option, - // reblog: Option (!), + reblog: Option>, // poll: Option, // card: Option, language: Option,