Struct diesel::migration::MigrationVersion
source · [−]pub struct MigrationVersion<'a>(_);
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
sourceimpl<'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
sourceimpl<'expr, 'a> AsExpression<Nullable<Text>> for &'expr MigrationVersion<'a>
impl<'expr, 'a> AsExpression<Nullable<Text>> for &'expr MigrationVersion<'a>
type Expression = Bound<Nullable<Text>, &'expr MigrationVersion<'a>>
type Expression = Bound<Nullable<Text>, &'expr MigrationVersion<'a>>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a> AsExpression<Nullable<Text>> for MigrationVersion<'a>
impl<'a> AsExpression<Nullable<Text>> for MigrationVersion<'a>
type Expression = Bound<Nullable<Text>, MigrationVersion<'a>>
type Expression = Bound<Nullable<Text>, MigrationVersion<'a>>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr, 'a> AsExpression<Text> for &'expr MigrationVersion<'a>
impl<'expr, 'a> AsExpression<Text> for &'expr MigrationVersion<'a>
type Expression = Bound<Text, &'expr MigrationVersion<'a>>
type Expression = Bound<Text, &'expr MigrationVersion<'a>>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a> AsExpression<Text> for MigrationVersion<'a>
impl<'a> AsExpression<Text> for MigrationVersion<'a>
type Expression = Bound<Text, MigrationVersion<'a>>
type Expression = Bound<Text, MigrationVersion<'a>>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a> Debug for MigrationVersion<'a>
impl<'a> Debug for MigrationVersion<'a>
sourceimpl<'a> Display for MigrationVersion<'a>
impl<'a> Display for MigrationVersion<'a>
sourceimpl<'a> From<&'a String> for MigrationVersion<'a>
impl<'a> From<&'a String> for MigrationVersion<'a>
sourceimpl<'a> From<&'a str> for MigrationVersion<'a>
impl<'a> From<&'a str> for MigrationVersion<'a>
sourceimpl<'a> From<String> for MigrationVersion<'a>
impl<'a> From<String> for MigrationVersion<'a>
sourceimpl<'a, DB> FromSql<Text, DB> for MigrationVersion<'a>where
String: FromSql<Text, DB>,
DB: Backend,
impl<'a, DB> FromSql<Text, DB> for MigrationVersion<'a>where
String: FromSql<Text, DB>,
DB: Backend,
sourceimpl<'a> Hash for MigrationVersion<'a>
impl<'a> Hash for MigrationVersion<'a>
sourceimpl<'a> Ord for MigrationVersion<'a>
impl<'a> Ord for MigrationVersion<'a>
sourcefn cmp(&self, other: &MigrationVersion<'a>) -> Ordering
fn cmp(&self, other: &MigrationVersion<'a>) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a> PartialEq<MigrationVersion<'a>> for MigrationVersion<'a>
impl<'a> PartialEq<MigrationVersion<'a>> for MigrationVersion<'a>
sourcefn eq(&self, other: &MigrationVersion<'a>) -> bool
fn eq(&self, other: &MigrationVersion<'a>) -> bool
sourceimpl<'a> PartialOrd<MigrationVersion<'a>> for MigrationVersion<'a>
impl<'a> PartialOrd<MigrationVersion<'a>> for MigrationVersion<'a>
sourcefn partial_cmp(&self, other: &MigrationVersion<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &MigrationVersion<'a>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<'a, __ST, __DB> Queryable<__ST, __DB> for MigrationVersion<'a>where
__DB: Backend,
__ST: SingleValue,
Self: FromSql<__ST, __DB>,
impl<'a, __ST, __DB> Queryable<__ST, __DB> for MigrationVersion<'a>where
__DB: Backend,
__ST: SingleValue,
Self: FromSql<__ST, __DB>,
sourceimpl<'a, __DB> ToSql<Nullable<Text>, __DB> for MigrationVersion<'a>where
__DB: Backend,
Self: ToSql<Text, __DB>,
impl<'a, __DB> ToSql<Nullable<Text>, __DB> for MigrationVersion<'a>where
__DB: Backend,
Self: ToSql<Text, __DB>,
sourceimpl<'a, DB> ToSql<Text, DB> for MigrationVersion<'a>where
Cow<'a, str>: ToSql<Text, DB>,
DB: Backend,
impl<'a, DB> ToSql<Text, DB> for MigrationVersion<'a>where
Cow<'a, str>: ToSql<Text, DB>,
DB: Backend,
impl<'a> Eq for MigrationVersion<'a>
impl<'a> StructuralEq for MigrationVersion<'a>
impl<'a> StructuralPartialEq for MigrationVersion<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresourcefn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more