Proper jsonb field encoding
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -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>>;
|
||||
|
Reference in New Issue
Block a user