Skip to main content

SchemaVersion

Trait SchemaVersion 

Source
pub trait SchemaVersion {
    // Required methods
    fn version() -> u32;
    fn ddl() -> &'static str;
}
Expand description

Trait for schema version management. Implementors define the current schema version and DDL.

Required Methods§

Source

fn version() -> u32

The expected schema version number.

Source

fn ddl() -> &'static str

The DDL to create/migrate the schema.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§