Versioned

Trait Versioned 

Source
pub trait Versioned {
    const VERSION: &'static str;
}
Expand description

A trait for versioned data schemas.

This trait marks a type as representing a specific version of a data schema. It should be derived using #[derive(Versioned)] along with the #[versioned(version = "x.y.z")] attribute.

Required Associated Constants§

Source

const VERSION: &'static str

The semantic version of this schema.

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.

Implementors§