pub enum SchemaDdlAdmissionError {
Show 21 variants
MissingExpectedSchemaVersion,
MissingNextSchemaVersion,
StaleExpectedSchemaVersion,
InvalidExpectedSchemaVersion,
InvalidNextSchemaVersion,
AcceptedSchemaChangeWithoutVersionBump,
EmptyVersionBump,
VersionGap,
VersionRollback,
FingerprintMethodMismatch,
UnsupportedTransitionClass,
PhysicalRunnerMissing,
ValidationFailed,
PublicationRaceLost,
InvalidAddColumnDefault,
InvalidAlterColumnDefault,
GeneratedIndexDropRejected,
RequiredDropDefaultUnsupported,
GeneratedFieldDefaultChangeRejected,
GeneratedFieldNullabilityChangeRejected,
SetNotNullValidationFailed,
}Expand description
SchemaDdlAdmissionError
Stable query-visible SQL DDL admission reason. Human diagnostics may carry extra version, fingerprint, and target facts beside this machine-readable variant.
Variants§
MissingExpectedSchemaVersion
MissingNextSchemaVersion
StaleExpectedSchemaVersion
InvalidExpectedSchemaVersion
InvalidNextSchemaVersion
AcceptedSchemaChangeWithoutVersionBump
EmptyVersionBump
VersionGap
VersionRollback
FingerprintMethodMismatch
UnsupportedTransitionClass
PhysicalRunnerMissing
ValidationFailed
PublicationRaceLost
InvalidAddColumnDefault
InvalidAlterColumnDefault
GeneratedIndexDropRejected
RequiredDropDefaultUnsupported
GeneratedFieldDefaultChangeRejected
GeneratedFieldNullabilityChangeRejected
SetNotNullValidationFailed
Implementations§
Source§impl SchemaDdlAdmissionError
impl SchemaDdlAdmissionError
Sourcepub const fn diagnostic_code(&self) -> SchemaDdlAdmissionCode
pub const fn diagnostic_code(&self) -> SchemaDdlAdmissionCode
Return the compact diagnostic code for this SQL DDL admission reason.
Trait Implementations§
Source§impl Clone for SchemaDdlAdmissionError
impl Clone for SchemaDdlAdmissionError
Source§fn clone(&self) -> SchemaDdlAdmissionError
fn clone(&self) -> SchemaDdlAdmissionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SchemaDdlAdmissionError
Source§impl Debug for SchemaDdlAdmissionError
impl Debug for SchemaDdlAdmissionError
Source§impl Display for SchemaDdlAdmissionError
impl Display for SchemaDdlAdmissionError
impl Eq for SchemaDdlAdmissionError
Source§impl Error for SchemaDdlAdmissionError
impl Error for SchemaDdlAdmissionError
1.30.0 · 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 PartialEq for SchemaDdlAdmissionError
impl PartialEq for SchemaDdlAdmissionError
Source§fn eq(&self, other: &SchemaDdlAdmissionError) -> bool
fn eq(&self, other: &SchemaDdlAdmissionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchemaDdlAdmissionError
Auto Trait Implementations§
impl Freeze for SchemaDdlAdmissionError
impl RefUnwindSafe for SchemaDdlAdmissionError
impl Send for SchemaDdlAdmissionError
impl Sync for SchemaDdlAdmissionError
impl Unpin for SchemaDdlAdmissionError
impl UnsafeUnpin for SchemaDdlAdmissionError
impl UnwindSafe for SchemaDdlAdmissionError
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