pub enum JsonPathOp {
Create,
Replace,
Delete,
InsertBefore,
InsertAfter,
}Expand description
An operation of JsonTree::set_path, as the flags JB_PATH_* of jsonfuncs.c give it.
Variants§
Create
Replace the part, or add it when the last step of the path is not in the value: jsonb_set with create.
Replace
Replace the part only: jsonb_set without create.
Delete
Remove the part: #-.
InsertBefore
jsonb_insert before the element.
InsertAfter
jsonb_insert after the element.
Trait Implementations§
impl Copy for PathOp
impl Eq for PathOp
impl StructuralPartialEq for PathOp
Auto Trait Implementations§
impl Freeze for PathOp
impl RefUnwindSafe for PathOp
impl Send for PathOp
impl Sync for PathOp
impl Unpin for PathOp
impl UnsafeUnpin for PathOp
impl UnwindSafe for PathOp
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