From e39d736a1c735c2c5156acf1183f4d81dc2af4d3 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 11 Jan 2019 14:12:31 -0800 Subject: allow returning expanded editors in editgroups and annotations --- rust/fatcat-api-spec/src/models.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'rust/fatcat-api-spec/src') diff --git a/rust/fatcat-api-spec/src/models.rs b/rust/fatcat-api-spec/src/models.rs index d07aa320..1738662b 100644 --- a/rust/fatcat-api-spec/src/models.rs +++ b/rust/fatcat-api-spec/src/models.rs @@ -234,6 +234,10 @@ pub struct Editgroup { #[serde(skip_serializing_if = "Option::is_none")] pub editor_id: Option, + #[serde(rename = "editor")] + #[serde(skip_serializing_if = "Option::is_none")] + pub editor: Option, + #[serde(rename = "submitted")] #[serde(skip_serializing_if = "Option::is_none")] pub submitted: Option>, @@ -260,6 +264,7 @@ impl Editgroup { Editgroup { editgroup_id: None, editor_id: None, + editor: None, submitted: None, description: None, extra: None, @@ -286,6 +291,10 @@ pub struct EditgroupAnnotation { #[serde(skip_serializing_if = "Option::is_none")] pub editor_id: Option, + #[serde(rename = "editor")] + #[serde(skip_serializing_if = "Option::is_none")] + pub editor: Option, + #[serde(rename = "created")] #[serde(skip_serializing_if = "Option::is_none")] pub created: Option>, @@ -305,6 +314,7 @@ impl EditgroupAnnotation { annotation_id: None, editgroup_id: None, editor_id: None, + editor: None, created: None, comment_markdown: None, extra: None, -- cgit v1.2.3