From 122d7f1ad653aea3f3a242f62d8899927b3d2209 Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 22 Sep 2025 10:46:18 +0800 Subject: [PATCH] feat: add created_at timestamp field to Provider struct - Add optional created_at field to track provider creation time - Serialize field as camelCase (createdAt) for JSON compatibility - Skip serialization when field is None to maintain backward compatibility --- src-tauri/src/provider.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src-tauri/src/provider.rs b/src-tauri/src/provider.rs index 1e10cee..20a3ff3 100644 --- a/src-tauri/src/provider.rs +++ b/src-tauri/src/provider.rs @@ -16,6 +16,9 @@ pub struct Provider { pub website_url: Option, #[serde(skip_serializing_if = "Option::is_none")] pub category: Option, + #[serde(skip_serializing_if = "Option::is_none")] + #[serde(rename = "createdAt")] + pub created_at: Option, } impl Provider { @@ -32,6 +35,7 @@ impl Provider { settings_config, website_url, category: None, + created_at: None, } } }