Debian Codegraph @

src/type_impls/json.rs

raw
1 #![allow(dead_code)]
2
3 use crate::deserialize::FromSqlRow;
4 use crate::expression::AsExpression;
5 use crate::sql_types::Json;
6 #[cfg(any(feature = "postgres_backend", feature = "sqlite"))]
7 use 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))]
13 struct SerdeJsonValueProxy(serde_json::Value);