pub trait GlobalProperty: Any {
type Value: Any;
// Required methods
fn new() -> Self;
fn validate(value: &Self::Value) -> Result<(), IxaError>;
}
Expand description
The trait representing a global property. Do not use this
directly, but instead define global properties with
[define_global_property()
]
Required Associated Types§
Required Methods§
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.