pub struct Operation(/* private fields */);Expand description
A validated RFC 6902 operation.
Trait Implementations§
Source§impl Rfc6902 for Operation
impl Rfc6902 for Operation
Source§fn add(path: impl Into<String>, value: Value) -> Result<Self, PointerError>
fn add(path: impl Into<String>, value: Value) -> Result<Self, PointerError>
Creates an
add operation.Source§fn copy(
from: impl Into<String>,
path: impl Into<String>,
) -> Result<Self, PointerError>
fn copy( from: impl Into<String>, path: impl Into<String>, ) -> Result<Self, PointerError>
Creates a
copy operation.Source§fn kind(&self) -> OperationKind
fn kind(&self) -> OperationKind
Returns this operation’s kind.
Source§fn move_(
from: impl Into<String>,
path: impl Into<String>,
) -> Result<Self, PointerError>
fn move_( from: impl Into<String>, path: impl Into<String>, ) -> Result<Self, PointerError>
Creates a
move operation.impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Forget for Operation
impl Freeze for Operation
impl Move for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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