Skip to content

Commit 37ca8ca

Browse files
committed
update concept
1 parent 2f830f8 commit 37ca8ca

File tree

4 files changed

+9
-37
lines changed

4 files changed

+9
-37
lines changed

proof-of-concept/Cargo.lock

Lines changed: 0 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proof-of-concept/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ tokio = { version = "1.35", features = ["full", "sync"] }
1212
serde = { version = "1.0", features = ["derive"] }
1313
serde_json = "1.0"
1414
validator = "0.18"
15-
utoipa = "4.2"
1615
chrono = { version = "0.4", features = ["serde"] }
1716
uuid = { version = "1.6", features = ["v4", "serde"] }
1817
futures-util = "0.3"

proof-of-concept/src/models.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ pub struct BookmarkResponse {
142142
pub description: Option<String>,
143143
pub category_id: Option<u64>,
144144
pub is_favorite: bool,
145-
pub created_at: DateTime<Utc>,
146-
pub updated_at: DateTime<Utc>,
145+
pub created_at: String,
146+
pub updated_at: String,
147147
}
148148

149149
impl From<&Bookmark> for BookmarkResponse {
@@ -155,14 +155,14 @@ impl From<&Bookmark> for BookmarkResponse {
155155
description: b.description.clone(),
156156
category_id: b.category_id,
157157
is_favorite: b.is_favorite,
158-
created_at: b.created_at,
159-
updated_at: b.updated_at,
158+
created_at: b.created_at.to_rfc3339(),
159+
updated_at: b.updated_at.to_rfc3339(),
160160
}
161161
}
162162
}
163163

164164
/// Query parameters for listing bookmarks
165-
#[derive(Debug, Deserialize, Default, IntoParams)]
165+
#[derive(Debug, Deserialize, Default, Schema)]
166166
pub struct BookmarkListParams {
167167
pub page: Option<u32>,
168168
pub limit: Option<u32>,
@@ -173,7 +173,7 @@ pub struct BookmarkListParams {
173173

174174
/// Paginated response wrapper
175175
#[derive(Debug, Serialize, Schema)]
176-
pub struct PaginatedResponse<T> {
176+
pub struct PaginatedResponse<T: rustapi_openapi::schema::RustApiSchema> {
177177
pub items: Vec<T>,
178178
pub total: usize,
179179
pub page: u32,
@@ -215,7 +215,7 @@ pub struct CategoryResponse {
215215
pub id: u64,
216216
pub name: String,
217217
pub color: Option<String>,
218-
pub created_at: DateTime<Utc>,
218+
pub created_at: String,
219219
}
220220

221221
impl From<&Category> for CategoryResponse {
@@ -224,7 +224,7 @@ impl From<&Category> for CategoryResponse {
224224
id: c.id,
225225
name: c.name.clone(),
226226
color: c.color.clone(),
227-
created_at: c.created_at,
227+
created_at: c.created_at.to_rfc3339(),
228228
}
229229
}
230230
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"rustc_fingerprint":5892572920467916005,"outputs":{"17747080675513052775":{"success":true,"status":"","code":0,"stdout":"rustc 1.91.0 (f8297e351 2025-10-28)\nbinary: rustc\ncommit-hash: f8297e351a40c1439a467bbbb6879088047f50b3\ncommit-date: 2025-10-28\nhost: x86_64-pc-windows-msvc\nrelease: 1.91.0\nLLVM version: 21.1.2\n","stderr":""},"7971740275564407648":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\tunay\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""},"12004014463585500860":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\tunay\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""}},"successes":{}}
1+
{"rustc_fingerprint":10447247078198843705,"outputs":{"7971740275564407648":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\tunay\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""},"17747080675513052775":{"success":true,"status":"","code":0,"stdout":"rustc 1.91.0 (f8297e351 2025-10-28)\nbinary: rustc\ncommit-hash: f8297e351a40c1439a467bbbb6879088047f50b3\ncommit-date: 2025-10-28\nhost: x86_64-pc-windows-msvc\nrelease: 1.91.0\nLLVM version: 21.1.2\n","stderr":""}},"successes":{}}

0 commit comments

Comments
 (0)