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<'expr> AsExpression<Json> for &'expr Value
[src]
type Expression = Bound<Json, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'expr2, 'expr> AsExpression<Json> for &'expr2 &'expr Value
[src]
type Expression = Bound<Json, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl AsExpression<Json> for Value
[src]
type Expression = Bound<Json, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl FromSql<Json, Pg> for Value
[src]
impl ToSql<Json, Pg> for Value
[src]
impl QueryId for Json
[src]
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]
Returns the type id of Self::QueryId
if Self::HAS_STATIC_QUERY_ID
. Returns None
otherwise. Read more
impl NotNull for Json
[src]
impl SingleValue for Json
[src]
impl HasSqlType<Json> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl Debug for Json
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Json
[src]
fn clone(&self) -> Json
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more