pub struct LegacyMigrationId { /* private fields */ }Expand description
Lossless compound identity for a released migration frontier member.
This is deliberately distinct from canonical V2 MigrationId: released
V1 directory labels and sidecar names admitted UTF-8 spellings outside the
portable lowercase grammar required for newly authored V2 manifests.
Implementations§
Source§impl LegacyMigrationId
impl LegacyMigrationId
Sourcepub fn new(
app_label: impl Into<String>,
name: impl Into<String>,
) -> Result<Self, Diagnostic>
pub fn new( app_label: impl Into<String>, name: impl Into<String>, ) -> Result<Self, Diagnostic>
Construct a lossless bounded released identity.
Sourcepub const fn app_label(&self) -> &LegacyMigrationAppLabel
pub const fn app_label(&self) -> &LegacyMigrationAppLabel
Return the exact released application label.
Sourcepub const fn name(&self) -> &LegacyMigrationName
pub const fn name(&self) -> &LegacyMigrationName
Return the exact released migration name.
Trait Implementations§
Source§impl Clone for LegacyMigrationId
impl Clone for LegacyMigrationId
Source§fn clone(&self) -> LegacyMigrationId
fn clone(&self) -> LegacyMigrationId
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 LegacyMigrationId
impl Debug for LegacyMigrationId
impl Eq for LegacyMigrationId
Source§impl From<MigrationId> for LegacyMigrationId
impl From<MigrationId> for LegacyMigrationId
Source§fn from(id: MigrationId) -> Self
fn from(id: MigrationId) -> Self
Converts to this type from the input type.
Source§impl Hash for LegacyMigrationId
impl Hash for LegacyMigrationId
Source§impl Ord for LegacyMigrationId
impl Ord for LegacyMigrationId
Source§fn cmp(&self, other: &LegacyMigrationId) -> Ordering
fn cmp(&self, other: &LegacyMigrationId) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LegacyMigrationId
impl PartialEq for LegacyMigrationId
Source§impl PartialOrd for LegacyMigrationId
impl PartialOrd for LegacyMigrationId
impl StructuralPartialEq for LegacyMigrationId
Auto Trait Implementations§
impl Freeze for LegacyMigrationId
impl RefUnwindSafe for LegacyMigrationId
impl Send for LegacyMigrationId
impl Sync for LegacyMigrationId
impl Unpin for LegacyMigrationId
impl UnsafeUnpin for LegacyMigrationId
impl UnwindSafe for LegacyMigrationId
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