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 MigrationVersion<'_>
impl MigrationVersion<'_>
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 Display for MigrationVersion<'_>
impl Display for MigrationVersion<'_>
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 From<String> for MigrationVersion<'_>
impl From<String> for MigrationVersion<'_>
Source§impl<DB> FromSql<Text, DB> for MigrationVersion<'_>
impl<DB> FromSql<Text, DB> for MigrationVersion<'_>
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.