Skip to main content

PatchKind

Trait PatchKind 

Source
pub trait PatchKind {
    const NULLABLE: bool;

    // Required method
    fn is_null(&self) -> bool;
}
Expand description

What a merge patch field can say: whether its kind of field may be set to null at all, and whether this one is.

Required Associated Constants§

Source

const NULLABLE: bool

Whether a field of this kind may be set to null.

Required Methods§

Source

fn is_null(&self) -> bool

Whether this field is set to null.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> PatchKind for Option<T>

Source§

const NULLABLE: bool = false

Source§

fn is_null(&self) -> bool

Implementors§

Source§

impl<T> PatchKind for Patch<T>

Source§

const NULLABLE: bool = true