aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/fatcat-api/src/models.rs')
-rw-r--r--rust/fatcat-api/src/models.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/fatcat-api/src/models.rs b/rust/fatcat-api/src/models.rs
index 94edf5c0..cd18469c 100644
--- a/rust/fatcat-api/src/models.rs
+++ b/rust/fatcat-api/src/models.rs
@@ -19,6 +19,10 @@ pub struct ChangelogEntry {
#[serde(rename = "timestamp")]
pub timestamp: chrono::DateTime<chrono::Utc>,
+
+ #[serde(rename = "editgroup")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub editgroup: Option<models::Editgroup>,
}
impl ChangelogEntry {
@@ -27,6 +31,7 @@ impl ChangelogEntry {
index: index,
editgroup_id: editgroup_id,
timestamp: timestamp,
+ editgroup: None,
}
}
}