pub trait SwampExport {
// Required methods
fn generate_swamp_definition() -> String;
fn to_swamp_value(&self) -> Value;
fn from_swamp_value(value: &Value) -> Result<Self, String>
where Self: Sized;
}
Required Methods§
fn generate_swamp_definition() -> String
fn to_swamp_value(&self) -> Value
fn from_swamp_value(value: &Value) -> Result<Self, String>where
Self: Sized,
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.