[][src]Enum k8_diff::Diff

pub enum Diff<R, P> {
    None,
    Delete,
    Patch(P),
    Replace(R),
    Merge(R),
}

Variants

None
Delete
Patch(P)
Replace(R)
Merge(R)

Implementations

impl<R, P> Diff<R, P>[src]

pub fn is_none(&self) -> bool[src]

pub fn is_delete(&self) -> bool[src]

pub fn is_replace(&self) -> bool[src]

pub fn is_patch(&self) -> bool[src]

pub fn is_merge(&self) -> bool[src]

pub fn as_replace_ref(&self) -> &R[src]

pub fn as_patch_ref(&self) -> &P[src]

Trait Implementations

impl<R: Debug, P: Debug> Debug for Diff<R, P>[src]

impl Serialize for Diff<Value, PatchObject>[src]

Auto Trait Implementations

impl<R, P> RefUnwindSafe for Diff<R, P> where
    P: RefUnwindSafe,
    R: RefUnwindSafe
[src]

impl<R, P> Send for Diff<R, P> where
    P: Send,
    R: Send
[src]

impl<R, P> Sync for Diff<R, P> where
    P: Sync,
    R: Sync
[src]

impl<R, P> Unpin for Diff<R, P> where
    P: Unpin,
    R: Unpin
[src]

impl<R, P> UnwindSafe for Diff<R, P> where
    P: UnwindSafe,
    R: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.