1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(dead_code)]

use crate::deserialize::FromSqlRow;
use crate::expression::AsExpression;
use crate::sql_types::Json;
#[cfg(feature = "postgres_backend")]
use crate::sql_types::Jsonb;

#[derive(AsExpression, FromSqlRow)]
#[diesel(foreign_derive)]
#[diesel(sql_type = Json)]
#[cfg_attr(feature = "postgres_backend", diesel(sql_type = Jsonb))]
struct SerdeJsonValueProxy(serde_json::Value);