pub struct Jsonb<T>(pub T);Available on crate features
jsonb and serde only.Expand description
A value which is stored in SQLite serialized as JSONB.
§⚠️ Warning
Jsonb is implemented with serde_sqlite_jsonb, which provides its
own implementation of the SQLite binary JSON format. This
implementation may contain bugs not present in SQLite.
For a safer alternative, use Json instead, and convert to and from
JSONB in your queries using the jsonb() and json() SQL functions.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<'r, T> Fetch<'r> for Jsonb<T>where
T: Deserialize<'r>,
impl<'r, T> Fetch<'r> for Jsonb<T>where
T: Deserialize<'r>,
type Value = Borrowed<'r, [u8]>
fn from_value(value: Self::Value) -> Result<Self>
fn fetch_column<'c>( statement: &'r Statement<'c>, column: ColumnIndex, ) -> Result<Self>
Source§fn fetch_value<'c>(value: &'r ValueRef<'c>) -> Result<Self>
fn fetch_value<'c>(value: &'r ValueRef<'c>) -> Result<Self>
Available on crate features
functions or value only.Auto Trait Implementations§
impl<T> Freeze for Jsonb<T>where
T: Freeze,
impl<T> RefUnwindSafe for Jsonb<T>where
T: RefUnwindSafe,
impl<T> Send for Jsonb<T>where
T: Send,
impl<T> Sync for Jsonb<T>where
T: Sync,
impl<T> Unpin for Jsonb<T>where
T: Unpin,
impl<T> UnsafeUnpin for Jsonb<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Jsonb<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more