pub trait MergePatchNullableFields {
// Required method
fn is_nullable(field: &str) -> bool;
}Expand description
A merge patch model: which of its fields a client may set to null
(its Patch fields), as opposed to leaving them out.
Implemented by #[derive(MergePatchNullableFields)], from each field’s
PatchKind. A field that may be cleared is a Patch<T>;
Option<Option<T>> is not supported, and the derive rejects it.
Required Methods§
Sourcefn is_nullable(field: &str) -> bool
fn is_nullable(field: &str) -> bool
Whether the field named field may be set to null.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".