Proper jsonb field encoding

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2025-07-31 12:15:52 +02:00
parent 0a8c5d1c1f
commit 74a1215554
4 changed files with 14 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ where
where
I: Index<Model = V>,
I::Key: Borrow<Q>,
Q: ToString + ?Sized;
Q: ToString + Serialize + core::fmt::Debug + Sync + ?Sized;
/// Get an object from its ID. This does not use an index lookup
fn get_by_id(&self, id: u32) -> Result<Option<V>, Error<Self::Error>>;
@@ -49,7 +49,7 @@ where
where
I: Index<Model = V>,
I::Key: Borrow<Q>,
Q: ToString + ?Sized;
Q: ToString + Serialize + core::fmt::Debug + Sync + ?Sized;
/// Delete an object with a given ID
fn delete_by_id(&self, id: u32) -> Result<(), Error<Self::Error>>;