Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3281735
D12212.id40642.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
884 B
Referenced Files
None
Subscribers
None
D12212.id40642.diff
View Options
diff --git a/lib/types/backup-types.js b/lib/types/backup-types.js
--- a/lib/types/backup-types.js
+++ b/lib/types/backup-types.js
@@ -5,6 +5,8 @@
import { tShape } from '../utils/validation-utils.js';
+// This type should match `BackupKeysResult` in
+// `native/native_rust_library/src/backup.rs`
export type BackupKeys = {
+backupID: string,
+backupDataKey: string,
diff --git a/native/native_rust_library/src/backup.rs b/native/native_rust_library/src/backup.rs
--- a/native/native_rust_library/src/backup.rs
+++ b/native/native_rust_library/src/backup.rs
@@ -392,8 +392,11 @@
})
}
+// This struct should match `BackupKeys` in `lib/types/backup-types.js`
#[derive(Debug, Serialize)]
+#[serde(rename_all = "camelCase")]
struct BackupKeysResult {
+ #[serde(rename = "backupID")]
backup_id: String,
backup_data_key: String,
backup_log_data_key: String,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 10:04 AM (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2522123
Default Alt Text
D12212.id40642.diff (884 B)
Attached To
Mode
D12212: [native_rust_library] fix serialization of BackupKeysResult
Attached
Detach File
Event Timeline
Log In to Comment