max / goingson
- Co-Authored-By
- Claude Opus 5 (1M context) <noreply@anthropic.com>
1 file changed,
+5 insertions,
-1 deletion
| @@ -9,7 +9,11 @@ | |||
| 9 | 9 | #[serde(rename_all = "camelCase")] | |
| 10 | 10 | pub struct SyncAccount { | |
| 11 | 11 | pub id: SyncAccountId, | |
| 12 | - | #[serde(skip_serializing)] | |
| 12 | + | /// User who owns this account. Not serialized into API responses; `default` | |
| 13 | + | /// lets a backup (which omits it) still deserialize, restore re-homes the | |
| 14 | + | /// row to the target user, so the placeholder is never persisted. Without | |
| 15 | + | /// the `default` any backup holding a sync account failed to read back. | |
| 16 | + | #[serde(default, skip_serializing)] | |
| 13 | 17 | pub user_id: UserId, | |
| 14 | 18 | pub provider: String, | |
| 15 | 19 | pub account_name: String, |