pub trait OptionType<'a> {
type OutputValue;
type DefaultValue;
// Required methods
fn convert_default(value: &Self::DefaultValue) -> Option<Value>;
fn from_value(value: &Option<Value>) -> Self::OutputValue;
fn get_value_type() -> ValueType;
}
Required Associated Types§
type OutputValue
type DefaultValue
Required Methods§
fn convert_default(value: &Self::DefaultValue) -> Option<Value>
fn from_value(value: &Option<Value>) -> Self::OutputValue
fn get_value_type() -> ValueType
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.