#[repr(C)]pub enum PatchOperation {
ADD = 0,
REMOVE = 1,
REPLACE = 2,
}
Expand description
The operation to be performed
Enumeration of values.
Since this enum’s variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
Variants§
Trait Implementations§
Source§impl Clone for PatchOperation
impl Clone for PatchOperation
Source§fn clone(&self) -> PatchOperation
fn clone(&self) -> PatchOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PatchOperation
impl Debug for PatchOperation
Source§impl<'de> Deserialize<'de> for PatchOperation
impl<'de> Deserialize<'de> for PatchOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PatchOperation
impl Display for PatchOperation
Source§impl FromStr for PatchOperation
impl FromStr for PatchOperation
Source§impl Ord for PatchOperation
impl Ord for PatchOperation
Source§fn cmp(&self, other: &PatchOperation) -> Ordering
fn cmp(&self, other: &PatchOperation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PatchOperation
impl PartialEq for PatchOperation
Source§impl PartialOrd for PatchOperation
impl PartialOrd for PatchOperation
Source§impl Serialize for PatchOperation
impl Serialize for PatchOperation
impl Copy for PatchOperation
impl Eq for PatchOperation
impl StructuralPartialEq for PatchOperation
Auto Trait Implementations§
impl Freeze for PatchOperation
impl RefUnwindSafe for PatchOperation
impl Send for PatchOperation
impl Sync for PatchOperation
impl Unpin for PatchOperation
impl UnwindSafe for PatchOperation
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