pub struct JsonCtor {
pub kind: JsonCtorKind,
pub args: Vec<Expr>,
pub func: Option<Expr>,
pub format: JsonFormat,
pub returning: JsonReturning,
pub unique: bool,
pub absent_on_null: bool,
pub coercion: Option<Expr>,
}Expand description
JsonConstructorExpr: a SQL/JSON constructor.
Fields§
§kind: JsonCtorKind§args: Vec<Expr>§func: Option<Expr>The expression that gives the value of JSON_OBJECTAGG, JSON_ARRAYAGG and JSON_ARRAY with a subquery.
format: JsonFormatThe FORMAT clause of the subquery of JSON_ARRAY.
returning: JsonReturningThe RETURNING clause, or the type that the analyzer gives when the call has no clause.
unique: boolWITH UNIQUE KEYS.
absent_on_null: boolABSENT ON NULL.
coercion: Option<Expr>The cast of the json or jsonb value to the type of RETURNING. ExprKind::CaseTest is the value.
Trait Implementations§
impl StructuralPartialEq for JsonCtor
Auto Trait Implementations§
impl Freeze for JsonCtor
impl RefUnwindSafe for JsonCtor
impl Send for JsonCtor
impl Sync for JsonCtor
impl Unpin for JsonCtor
impl UnsafeUnpin for JsonCtor
impl UnwindSafe for JsonCtor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more