pub struct MigrationVersion(/* private fields */);Implementations§
Source§impl MigrationVersion
impl MigrationVersion
Sourcepub fn new(input: impl AsRef<str>) -> Result<MigrationVersion, MigrationError>
pub fn new(input: impl AsRef<str>) -> Result<MigrationVersion, MigrationError>
Creates a migration metadata label.
§Errors
Returns MigrationError when the label is empty or contains control characters.
Trait Implementations§
Source§impl Clone for MigrationVersion
impl Clone for MigrationVersion
Source§fn clone(&self) -> MigrationVersion
fn clone(&self) -> MigrationVersion
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 MigrationVersion
impl Debug for MigrationVersion
Source§impl Display for MigrationVersion
impl Display for MigrationVersion
Source§impl Hash for MigrationVersion
impl Hash for MigrationVersion
Source§impl Ord for MigrationVersion
impl Ord for MigrationVersion
Source§fn cmp(&self, other: &MigrationVersion) -> Ordering
fn cmp(&self, other: &MigrationVersion) -> 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 MigrationVersion
impl PartialEq for MigrationVersion
Source§fn eq(&self, other: &MigrationVersion) -> bool
fn eq(&self, other: &MigrationVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MigrationVersion
impl PartialOrd for MigrationVersion
impl Eq for MigrationVersion
impl StructuralPartialEq for MigrationVersion
Auto Trait Implementations§
impl Freeze for MigrationVersion
impl RefUnwindSafe for MigrationVersion
impl Send for MigrationVersion
impl Sync for MigrationVersion
impl Unpin for MigrationVersion
impl UnsafeUnpin for MigrationVersion
impl UnwindSafe for MigrationVersion
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