Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(rust): Match Go CLI JSON field naming for ID fields

Manav Rathiccfec4071f04
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<i64>,
/// 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<String>,
+ #[serde(rename = "ownerID")]
pub owner_id: i64,
/// Multiple filenames for live photos or burst photos
pub file_names: Vec<String>,