pub struct SchemaNeedsMigration {
pub from: i64,
pub to: i64,
}Expand description
Returned by schema::validate when a read-only connection observes a DB
older than the binary’s target version. Read-only connections cannot run
DDL, so the caller must decide: the user brain treats it as “unavailable
this call” (Ok(None)) and the next read-write open migrates it.
Fields§
§from: i64§to: i64Trait Implementations§
Source§impl Clone for SchemaNeedsMigration
impl Clone for SchemaNeedsMigration
Source§fn clone(&self) -> SchemaNeedsMigration
fn clone(&self) -> SchemaNeedsMigration
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 SchemaNeedsMigration
impl Debug for SchemaNeedsMigration
Source§impl Display for SchemaNeedsMigration
impl Display for SchemaNeedsMigration
impl Eq for SchemaNeedsMigration
Source§impl Error for SchemaNeedsMigration
impl Error for SchemaNeedsMigration
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 SchemaNeedsMigration
impl PartialEq for SchemaNeedsMigration
Source§fn eq(&self, other: &SchemaNeedsMigration) -> bool
fn eq(&self, other: &SchemaNeedsMigration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchemaNeedsMigration
Auto Trait Implementations§
impl Freeze for SchemaNeedsMigration
impl RefUnwindSafe for SchemaNeedsMigration
impl Send for SchemaNeedsMigration
impl Sync for SchemaNeedsMigration
impl Unpin for SchemaNeedsMigration
impl UnsafeUnpin for SchemaNeedsMigration
impl UnwindSafe for SchemaNeedsMigration
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