pub trait DataPointType:
Clone
+ Send
+ Sync
+ 'static {
// Required methods
fn data_type() -> DataType;
fn from_value(value: &Value) -> Option<Self>;
fn to_value(&self) -> Value;
fn type_name() -> &'static str;
}Expand description
A trait for types that can be stored in data points.
Required Methods§
Sourcefn from_value(value: &Value) -> Option<Self>
fn from_value(value: &Value) -> Option<Self>
Convert from Value.
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.