1 2 3 4 5 6 7 8 9 10 11
use sqlx::migrate::MigrateError; #[derive(Debug, thiserror::Error)] #[non_exhaustive] pub enum ValidateError { #[error("migration {0} was not applied")] VersionNotApplied(i64), #[error(transparent)] MigrateError(#[from] MigrateError), }