[−][src]Struct refinery::Migration
Represents a schema migration to be run on the database, this struct is used by the embed_migrations and the mod_migrations to gather migration files and shouldn't be needed by the user
Fields
name: String
version: usize
prefix: MigrationPrefix
sql: String
Methods
impl Migration
[src]
pub fn from_filename(name: &str, sql: &str) -> Result<Migration, Error>
[src]
pub fn checksum(&self) -> u64
[src]
pub fn as_applied(&self) -> AppliedMigration
[src]
Trait Implementations
impl Clone for Migration
[src]
impl Debug for Migration
[src]
impl Display for Migration
[src]
impl Eq for Migration
[src]
impl Ord for Migration
[src]
fn cmp(&self, other: &Migration) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Migration> for Migration
[src]
impl PartialOrd<Migration> for Migration
[src]
Auto Trait Implementations
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin for Migration
impl UnwindSafe for Migration
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,