pub trait ParamField: Sized {
// Required methods
fn default_param_value() -> ProjectParamValue;
fn to_param_value(&self) -> ProjectParamValue;
fn from_param_value(
value: &ProjectParamValue,
) -> Result<Self, ParamFieldError>;
}Expand description
A type that can be used as a field of a #[derive(PlotteryParams)] struct.
Required Methods§
fn default_param_value() -> ProjectParamValue
fn to_param_value(&self) -> ProjectParamValue
fn from_param_value(value: &ProjectParamValue) -> Result<Self, ParamFieldError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".