pub trait Migration:
Send
+ Sync
+ 'static {
// Required methods
fn version(&self) -> u64;
fn name(&self) -> &'static str;
fn up(&self) -> &'static str;
// Provided method
fn checksum(&self) -> u64 { ... }
}Required Methods§
Sourcefn version(&self) -> u64
fn version(&self) -> u64
Monotonic version, e.g. 2026_0611_0001. Duplicates are rejected at
registration.
fn name(&self) -> &'static str
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".