pub struct JsonExpr {
pub op: JsonExprOp,
pub formatted: Expr,
pub path: Expr,
pub passing: Vec<(String, Expr)>,
pub returning: JsonReturning,
pub on_empty: Option<JsonBehavior>,
pub on_error: JsonBehavior,
pub wrapper: JsonWrapper,
pub omit_quotes: bool,
pub json_coercion: bool,
pub io_coercion: bool,
pub column: Option<String>,
}Expand description
JsonExpr: JSON_EXISTS, JSON_QUERY or JSON_VALUE.
Fields§
§op: JsonExprOp§formatted: ExprThe context item as a jsonb value.
path: ExprThe path, of type jsonpath.
passing: Vec<(String, Expr)>The names and the values of the PASSING clause.
returning: JsonReturning§on_empty: Option<JsonBehavior>ON EMPTY, which JSON_EXISTS does not have.
on_error: JsonBehavior§wrapper: JsonWrapper§omit_quotes: boolOMIT QUOTES, which is always true for JSON_VALUE.
json_coercion: boolTrue when the executor casts the result to the type of RETURNING as json_populate_type does.
io_coercion: boolTrue when the executor casts the text of the result to the type of RETURNING with its input function.
column: Option<String>column_name: the name of the column of JSON_TABLE that the node computes, which the errors show.
Implementations§
Trait Implementations§
impl StructuralPartialEq for JsonExpr
Auto Trait Implementations§
impl Freeze for JsonExpr
impl RefUnwindSafe for JsonExpr
impl Send for JsonExpr
impl Sync for JsonExpr
impl Unpin for JsonExpr
impl UnsafeUnpin for JsonExpr
impl UnwindSafe for JsonExpr
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