mirror of
https://github.com/perstarkse/minne.git
synced 2026-11-22 22:44:04 +01:00
refactor: extract serde helpers from stored_object! macro
Move FlexibleIdVisitor, deserialize_flexible_id, and four datetime serde helpers from repeating inside every macro expansion into a shared common/src/storage/types/serde_helpers.rs module. 14 macro invocations × 6 items = ~84 fewer redundant function definitions. Fragile cross-module imports (file_info::deserialize_flexible_id etc.) are updated to point to the canonical module.
This commit is contained in:
1 parent
d0d00469e9
commit
9affc0b05b
7 files changed
+94
-92
No files matched your search
@@ -9,7 +9,8 @@ use axum::{
|
||||
response::IntoResponse,
|
||||
};
|
||||
use common::storage::types::{
|
||||
text_content::{deserialize_flexible_id, TextContent},
|
||||
serde_helpers::deserialize_flexible_id,
|
||||
text_content::TextContent,
|
||||
StoredObject,
|
||||
};
|
||||
use retrieval_pipeline::{RetrievalConfig, SearchResult, SearchTarget, StrategyOutput};
|
||||
|
||||
Reference in new issue
Block a user