pub enum BuildError {
Show 14 variants
UnsupportedDialect(Dialect),
MissingSchemaFiles,
SqliteRebuildDataTransformConflict,
ReadSchema {
path: PathBuf,
source: Error,
},
SchemaParse(String),
Io(Error),
Migration(MigrationError),
ConfigNotFound(PathBuf),
Toml {
path: PathBuf,
source: Error,
},
ReadSqliteRebuildDataPlan {
path: PathBuf,
source: Error,
},
ParseSqliteRebuildDataPlan {
path: PathBuf,
source: Error,
},
MissingUrl,
EnvVarNotSet(String),
EnvVarNotUnicode(String),
}Available on crate feature
std only.Expand description
Errors that can occur while generating migrations in build.rs.
Variants§
UnsupportedDialect(Dialect)
MissingSchemaFiles
SqliteRebuildDataTransformConflict
ReadSchema
SchemaParse(String)
Io(Error)
Migration(MigrationError)
ConfigNotFound(PathBuf)
Toml
ReadSqliteRebuildDataPlan
ParseSqliteRebuildDataPlan
MissingUrl
EnvVarNotSet(String)
EnvVarNotUnicode(String)
Trait Implementations§
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
impl Error for BuildError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for BuildError
impl From<Error> for BuildError
Source§fn from(source: Error) -> BuildError
fn from(source: Error) -> BuildError
Converts to this type from the input type.
Source§impl From<MigrationError> for BuildError
impl From<MigrationError> for BuildError
Source§fn from(source: MigrationError) -> BuildError
fn from(source: MigrationError) -> BuildError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BuildError
impl !UnwindSafe for BuildError
impl Freeze for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<Mk> MarkerAggValidFor<()> for Mk
impl<Scope> ScopeSatisfies<Nil, ()> for Scope
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more