pub enum MigrationDirection {
Up,
Down,
}Expand description
Migration direction metadata.
Variants§
Trait Implementations§
Source§impl Clone for MigrationDirection
impl Clone for MigrationDirection
Source§fn clone(&self) -> MigrationDirection
fn clone(&self) -> MigrationDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MigrationDirection
impl Debug for MigrationDirection
Source§impl Default for MigrationDirection
impl Default for MigrationDirection
Source§fn default() -> MigrationDirection
fn default() -> MigrationDirection
Returns the “default value” for a type. Read more
Source§impl Hash for MigrationDirection
impl Hash for MigrationDirection
Source§impl Ord for MigrationDirection
impl Ord for MigrationDirection
Source§fn cmp(&self, other: &MigrationDirection) -> Ordering
fn cmp(&self, other: &MigrationDirection) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for MigrationDirection
impl PartialEq for MigrationDirection
Source§fn eq(&self, other: &MigrationDirection) -> bool
fn eq(&self, other: &MigrationDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MigrationDirection
impl PartialOrd for MigrationDirection
impl Copy for MigrationDirection
impl Eq for MigrationDirection
impl StructuralPartialEq for MigrationDirection
Auto Trait Implementations§
impl Freeze for MigrationDirection
impl RefUnwindSafe for MigrationDirection
impl Send for MigrationDirection
impl Sync for MigrationDirection
impl Unpin for MigrationDirection
impl UnsafeUnpin for MigrationDirection
impl UnwindSafe for MigrationDirection
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