diesel/type_impls/json.rs
1#![allow(dead_code)]
2
3use crate::deserialize::FromSqlRow;
4use crate::expression::AsExpression;
5use crate::sql_types::Json;
6#[cfg(any(feature = "postgres_backend", feature = "sqlite"))]
7use crate::sql_types::Jsonb;
8
9#[derive(AsExpression, FromSqlRow)]
10#[diesel(foreign_derive)]
11#[diesel(sql_type = Json)]
12#[cfg_attr(any(feature = "postgres_backend", feature = "sqlite"), diesel(sql_type = Jsonb))]
13struct SerdeJsonValueProxy(serde_json::Value);