From 184f40bef1addb7dfa2d4231ef10f096e15fe3f3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 23 Dec 2023 10:16:33 +0000 Subject: [PATCH] Self-reference to subthings via Box --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, -- 2.30.2