pub trait OptionalNullable: Default {
type Target;
// Required methods
fn is_absent(&self) -> bool;
fn null() -> Self;
fn value(value: Self::Target) -> Self;
}Expand description
Models a fields that may be absent, null, or a value.
Default is required; it constructs the absent state.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".