Struct diesel::migration::MigrationVersion[][src]

pub struct MigrationVersion<'a>(_);

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

impl<'a> MigrationVersion<'a>[src]

pub fn as_owned(&self) -> MigrationVersion<'static>[src]

Convert the current migration version into an owned variant with static life time

Trait Implementations

impl<'expr, 'a> AsExpression<Nullable<Text>> for &'expr MigrationVersion<'a>[src]

type Expression = Bound<Nullable<Text>, Self>

The expression being returned

impl<'a> AsExpression<Nullable<Text>> for MigrationVersion<'a>[src]

type Expression = Bound<Nullable<Text>, Self>

The expression being returned

impl<'expr, 'a> AsExpression<Text> for &'expr MigrationVersion<'a>[src]

type Expression = Bound<Text, Self>

The expression being returned

impl<'a> AsExpression<Text> for MigrationVersion<'a>[src]

type Expression = Bound<Text, Self>

The expression being returned

impl<'a> Debug for MigrationVersion<'a>[src]

impl<'a> Display for MigrationVersion<'a>[src]

impl<'a> Eq for MigrationVersion<'a>[src]

impl<'a> From<&'a String> for MigrationVersion<'a>[src]

impl<'a> From<&'a str> for MigrationVersion<'a>[src]

impl<'a> From<String> for MigrationVersion<'a>[src]

impl<'a, DB> FromSql<Text, DB> for MigrationVersion<'a> where
    String: FromSql<Text, DB>,
    DB: Backend
[src]

impl<'a> Hash for MigrationVersion<'a>[src]

impl<'a> Ord for MigrationVersion<'a>[src]

impl<'a> PartialEq<MigrationVersion<'a>> for MigrationVersion<'a>[src]

impl<'a> PartialOrd<MigrationVersion<'a>> for MigrationVersion<'a>[src]

impl<'a, __ST, __DB> Queryable<__ST, __DB> for MigrationVersion<'a> where
    __DB: Backend,
    __ST: SingleValue,
    Self: FromSql<__ST, __DB>, 
[src]

type Row = Self

The Rust type you’d like to map from. Read more

impl<'a> StructuralEq for MigrationVersion<'a>[src]

impl<'a> StructuralPartialEq for MigrationVersion<'a>[src]

impl<'a, __DB> ToSql<Nullable<Text>, __DB> for MigrationVersion<'a> where
    __DB: Backend,
    Self: ToSql<Text, __DB>, 
[src]

impl<'a, DB> ToSql<Text, DB> for MigrationVersion<'a> where
    Cow<'a, str>: ToSql<Text, DB>,
    DB: Backend
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, ST, DB> FromSqlRow<ST, DB> for T where
    DB: Backend,
    T: Queryable<ST, DB>,
    ST: SqlTypeOrSelectable,
    <T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>, 
[src]

impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T where
    DB: Backend,
    T: FromSql<ST, DB>,
    ST: SingleValue
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T, ST, DB> StaticallySizedRow<ST, DB> for T where
    DB: Backend,
    T: Queryable<ST, DB>,
    ST: SqlTypeOrSelectable + TupleSize, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]