pub struct JsonField(pub Value);Expand description
JSON stored as SQL TEXT and serialized as a JSON value, never as an escaped string.
Tuple Fields§
§0: ValueTrait Implementations§
Source§impl ColumnTypeOf for JsonField
impl ColumnTypeOf for JsonField
Source§impl<'de> Deserialize<'de> for JsonField
impl<'de> Deserialize<'de> for JsonField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromDatabaseValue for JsonField
impl FromDatabaseValue for JsonField
fn from_database_value(value: &DatabaseValue) -> Result<Self, DecodeError>
Source§impl FromSql for JsonField
Available on crate feature sqlite only.
impl FromSql for JsonField
Available on crate feature
sqlite only.Source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
Source§impl QueryValue<JsonField> for JsonField
impl QueryValue<JsonField> for JsonField
fn into_query_value(self) -> DatabaseValue
impl StructuralPartialEq for JsonField
Auto Trait Implementations§
impl Freeze for JsonField
impl RefUnwindSafe for JsonField
impl Send for JsonField
impl Sync for JsonField
impl Unpin for JsonField
impl UnsafeUnpin for JsonField
impl UnwindSafe for JsonField
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