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<'a, '__expr> AsExpression<Nullable<Text>> for &'__expr MigrationVersion<'a>
impl<'a, '__expr> 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<'a, '__expr> AsExpression<Text> for &'__expr MigrationVersion<'a>
impl<'a, '__expr> 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, __DB, __ST> Queryable<__ST, __DB> for MigrationVersion<'a>
impl<'a, __DB, __ST> 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.