pub struct MigrationLogicalIdPinError {
pub offender: String,
pub statement: String,
}Expand description
0.8.20 Slice 25 (R-20-SUR) — rejection from the TC-11 logical_id pin.
Carries the offending migration’s name (as MigrationAccretionError does)
PLUS the normalised offending statement, because a migration step is a
batch: naming the file alone would leave an author hunting for which of a
dozen statements tripped the guard.
Fields§
§offender: StringThe migration step / file name handed to the guard.
statement: StringThe single offending statement, comment-stripped, string-literal-elided, uppercased and whitespace-collapsed (the guard’s normalised view).
Trait Implementations§
Source§impl Clone for MigrationLogicalIdPinError
impl Clone for MigrationLogicalIdPinError
Source§fn clone(&self) -> MigrationLogicalIdPinError
fn clone(&self) -> MigrationLogicalIdPinError
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 moreSource§impl Debug for MigrationLogicalIdPinError
impl Debug for MigrationLogicalIdPinError
Source§impl Display for MigrationLogicalIdPinError
impl Display for MigrationLogicalIdPinError
impl Eq for MigrationLogicalIdPinError
Source§impl Error for MigrationLogicalIdPinError
impl Error for MigrationLogicalIdPinError
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()
impl StructuralPartialEq for MigrationLogicalIdPinError
Auto Trait Implementations§
impl Freeze for MigrationLogicalIdPinError
impl RefUnwindSafe for MigrationLogicalIdPinError
impl Send for MigrationLogicalIdPinError
impl Sync for MigrationLogicalIdPinError
impl Unpin for MigrationLogicalIdPinError
impl UnsafeUnpin for MigrationLogicalIdPinError
impl UnwindSafe for MigrationLogicalIdPinError
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