pub trait NodeTrait:
    HasKind
    + Debug
    + PartialEq
    + Clone
    + Serialize
    + for<'de> Deserialize<'de> {
    const KIND: &'static str;
    // Provided methods
    fn to_json(&self) -> CodamaResult<String> { ... }
    fn to_json_pretty(&self) -> CodamaResult<String> { ... }
    fn from_json(json: &str) -> CodamaResult<Self> { ... }
}Required Associated Constants§
Provided Methods§
fn to_json(&self) -> CodamaResult<String>
fn to_json_pretty(&self) -> CodamaResult<String>
fn from_json(json: &str) -> CodamaResult<Self>
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.