1 2 3 4 5 6 7 8 9
/// Trait for schema version management. /// Implementors define the current schema version and DDL. pub trait SchemaVersion { /// The expected schema version number. fn version() -> u32; /// The DDL to create/migrate the schema. fn ddl() -> &'static str; }