diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-11 14:12:31 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-11 14:12:31 -0800 |
commit | e39d736a1c735c2c5156acf1183f4d81dc2af4d3 (patch) | |
tree | 04085339896e4903b41f0a60ac5014d2905a8c43 /rust/fatcat-api-spec/src | |
parent | 5b6a9ee3fa9b781c67074b9815cdaef84548692d (diff) | |
download | fatcat-e39d736a1c735c2c5156acf1183f4d81dc2af4d3.tar.gz fatcat-e39d736a1c735c2c5156acf1183f4d81dc2af4d3.zip |
allow returning expanded editors in editgroups and annotations
Diffstat (limited to 'rust/fatcat-api-spec/src')
-rw-r--r-- | rust/fatcat-api-spec/src/models.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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<String>, + #[serde(rename = "editor")] + #[serde(skip_serializing_if = "Option::is_none")] + pub editor: Option<models::Editor>, + #[serde(rename = "submitted")] #[serde(skip_serializing_if = "Option::is_none")] pub submitted: Option<chrono::DateTime<chrono::Utc>>, @@ -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<String>, + #[serde(rename = "editor")] + #[serde(skip_serializing_if = "Option::is_none")] + pub editor: Option<models::Editor>, + #[serde(rename = "created")] #[serde(skip_serializing_if = "Option::is_none")] pub created: Option<chrono::DateTime<chrono::Utc>>, @@ -305,6 +314,7 @@ impl EditgroupAnnotation { annotation_id: None, editgroup_id: None, editor_id: None, + editor: None, created: None, comment_markdown: None, extra: None, |