pub struct MigrationVersion {
pub segments: Vec<u64>,
pub raw: String,
}Expand description
A parsed migration version, supporting dotted numeric segments (e.g., “1.2.3”).
Fields§
§segments: Vec<u64>Parsed numeric segments of the version (e.g., [1, 2, 3] for "1.2.3").
raw: StringOriginal version string as it appeared in the filename.
Implementations§
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 · 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 Ord for MigrationVersion
impl Ord for MigrationVersion
Source§impl PartialEq for MigrationVersion
impl PartialEq for MigrationVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.