Struct diesel::pg::types::sql_types::Json [−][src]
pub struct Json;
The JSON SQL type. This type can only be used with feature = "serde_json"
Normally you should prefer Jsonb
instead, for the reasons
discussed there.
ToSql
impls
FromSql
impls
Trait Implementations
impl QueryId for Json
[src]
impl QueryId for Json
type QueryId = Json
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self
be uniquely identified by its type? Read more
fn query_id() -> Option<TypeId>
[src]
fn query_id() -> Option<TypeId>
Returns the type id of Self::QueryId
if Self::HAS_STATIC_QUERY_ID
. Returns None
otherwise. Read more
impl NotNull for Json
[src]
impl NotNull for Json
impl SingleValue for Json
[src]
impl SingleValue for Json
impl HasSqlType<Json> for Pg
[src]
impl HasSqlType<Json> for Pg
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
impl Debug for Json
[src]
impl Debug for Json
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Json
[src]
impl Clone for Json
fn clone(&self) -> Json
[src]
fn clone(&self) -> Json
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Json
[src]
impl Copy for Json
impl Default for Json
[src]
impl Default for Json