#[derive(Versioned)]
{
// Attributes available to this derive:
#[versioned]
}
Expand description
Derives the Versioned trait for a struct.
§Attributes
#[versioned(version = "x.y.z")]: Specifies the semantic version. The version string must be a valid semantic version.
§Example
ⓘ
use version_migrate::Versioned;
#[derive(Versioned)]
#[versioned(version = "1.0.0")]
pub struct Task_V1_0_0 {
pub id: String,
pub title: String,
}