pub struct JsonBehavior {
pub kind: JsonBehaviorKind,
pub expr: Option<Expr>,
pub coerce: bool,
}Expand description
JsonBehavior: an ON ERROR or an ON EMPTY clause.
Fields§
§kind: JsonBehaviorKind§expr: Option<Expr>The value of the behavior, or None for ERROR.
coerce: boolTrue when the executor casts the value to the type of RETURNING at run time, as json_populate_type does.
Trait Implementations§
Source§impl Clone for JsonBehavior
impl Clone for JsonBehavior
Source§impl Debug for JsonBehavior
impl Debug for JsonBehavior
Source§impl PartialEq for JsonBehavior
impl PartialEq for JsonBehavior
impl StructuralPartialEq for JsonBehavior
Auto Trait Implementations§
impl Freeze for JsonBehavior
impl RefUnwindSafe for JsonBehavior
impl Send for JsonBehavior
impl Sync for JsonBehavior
impl Unpin for JsonBehavior
impl UnsafeUnpin for JsonBehavior
impl UnwindSafe for JsonBehavior
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