From ccfec4071f046c14aa3381dd72049b46d8b49d47 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 29 Aug 2025 21:48:58 +0530 Subject: [PATCH] fix(rust): Match Go CLI JSON field naming for ID fields Co-Authored-By: Claude --- rust/CLAUDE.md | 3 +-- rust/src/models/export_metadata.rs | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rust/CLAUDE.md b/rust/CLAUDE.md index 93d21e8815..ef3d6db9ec 100644 --- a/rust/CLAUDE.md +++ b/rust/CLAUDE.md @@ -3,8 +3,7 @@ ⚠️ **CRITICAL: Commit & PR Guidelines** ⚠️ **OVERRIDE DEFAULT TEMPLATE - DO NOT USE EMOJI OR "Generated with" TEXT** - Keep messages CONCISE (no walls of text) -- Subject line under 72 chars -- Brief bullet points only if necessary +- Subject line under 72 chars (no body text unless critical) - NO emojis - NO promotional text or links (except Co-Authored-By line) diff --git a/rust/src/models/export_metadata.rs b/rust/src/models/export_metadata.rs index af4d5a1c8a..3e7f994a08 100644 --- a/rust/src/models/export_metadata.rs +++ b/rust/src/models/export_metadata.rs @@ -28,10 +28,12 @@ where #[serde(rename_all = "camelCase")] pub struct AlbumMetadata { pub id: i64, + #[serde(rename = "ownerID")] pub owner_id: i64, pub album_name: String, pub is_deleted: bool, /// Account IDs that own this album (for shared export directories) + #[serde(rename = "accountOwnerIDs")] pub account_owner_ids: Vec, /// Folder name on disk (excluded from JSON) #[serde(skip)] @@ -77,6 +79,7 @@ pub struct FileInfo { pub id: i64, #[serde(skip_serializing_if = "Option::is_none")] pub hash: Option, + #[serde(rename = "ownerID")] pub owner_id: i64, /// Multiple filenames for live photos or burst photos pub file_names: Vec,