Struct diesel::migration::MigrationVersion
source · pub struct MigrationVersion<'a>(/* private fields */);
Expand description
A migration version identifier
This is used by the migration harness to place migrations in order, therefore two different instances of this type must be sortable
Implementations§
source§impl<'a> MigrationVersion<'a>
impl<'a> MigrationVersion<'a>
sourcepub fn as_owned(&self) -> MigrationVersion<'static>
pub fn as_owned(&self) -> MigrationVersion<'static>
Convert the current migration version into an owned variant with static life time
Trait Implementations§
source§impl<'expr, 'a> AsExpression<Nullable<Text>> for &'expr MigrationVersion<'a>
impl<'expr, 'a> AsExpression<Nullable<Text>> for &'expr MigrationVersion<'a>
source§type Expression = Bound<Nullable<Text>, &'expr MigrationVersion<'a>>
type Expression = Bound<Nullable<Text>, &'expr MigrationVersion<'a>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a> AsExpression<Nullable<Text>> for MigrationVersion<'a>
impl<'a> AsExpression<Nullable<Text>> for MigrationVersion<'a>
source§type Expression = Bound<Nullable<Text>, MigrationVersion<'a>>
type Expression = Bound<Nullable<Text>, MigrationVersion<'a>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr, 'a> AsExpression<Text> for &'expr MigrationVersion<'a>
impl<'expr, 'a> AsExpression<Text> for &'expr MigrationVersion<'a>
source§type Expression = Bound<Text, &'expr MigrationVersion<'a>>
type Expression = Bound<Text, &'expr MigrationVersion<'a>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a> AsExpression<Text> for MigrationVersion<'a>
impl<'a> AsExpression<Text> for MigrationVersion<'a>
source§type Expression = Bound<Text, MigrationVersion<'a>>
type Expression = Bound<Text, MigrationVersion<'a>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a> Debug for MigrationVersion<'a>
impl<'a> Debug for MigrationVersion<'a>
source§impl<'a> Display for MigrationVersion<'a>
impl<'a> Display for MigrationVersion<'a>
source§impl<'a> From<&'a String> for MigrationVersion<'a>
impl<'a> From<&'a String> for MigrationVersion<'a>
source§impl<'a> From<&'a str> for MigrationVersion<'a>
impl<'a> From<&'a str> for MigrationVersion<'a>
source§impl<'a> From<String> for MigrationVersion<'a>
impl<'a> From<String> for MigrationVersion<'a>
source§impl<'a, DB> FromSql<Text, DB> for MigrationVersion<'a>
impl<'a, DB> FromSql<Text, DB> for MigrationVersion<'a>
source§impl<'a> Hash for MigrationVersion<'a>
impl<'a> Hash for MigrationVersion<'a>
source§impl<'a> Ord for MigrationVersion<'a>
impl<'a> Ord for MigrationVersion<'a>
source§fn cmp(&self, other: &MigrationVersion<'a>) -> Ordering
fn cmp(&self, other: &MigrationVersion<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for MigrationVersion<'a>
impl<'a> PartialEq for MigrationVersion<'a>
source§impl<'a> PartialOrd for MigrationVersion<'a>
impl<'a> PartialOrd for MigrationVersion<'a>
source§impl<'a, __ST, __DB> Queryable<__ST, __DB> for MigrationVersion<'a>
impl<'a, __ST, __DB> Queryable<__ST, __DB> for MigrationVersion<'a>
source§impl<'a, DB> ToSql<Text, DB> for MigrationVersion<'a>
impl<'a, DB> ToSql<Text, DB> for MigrationVersion<'a>
impl<'a> Eq for MigrationVersion<'a>
impl<'a> StructuralPartialEq for MigrationVersion<'a>
Auto Trait Implementations§
impl<'a> Freeze for MigrationVersion<'a>
impl<'a> RefUnwindSafe for MigrationVersion<'a>
impl<'a> Send for MigrationVersion<'a>
impl<'a> Sync for MigrationVersion<'a>
impl<'a> Unpin for MigrationVersion<'a>
impl<'a> UnwindSafe for MigrationVersion<'a>
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
source§impl<T, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
impl<T, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
source§impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T
impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
source§const FIELD_COUNT: usize = const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE;
const FIELD_COUNT: usize = const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE;
The number of fields that this type will consume.