pub struct ContractMigrationOperationId(/* private fields */);Expand description
The caller-stable identifier of one contract migration operation.
Implementations§
Source§impl ContractMigrationOperationId
impl ContractMigrationOperationId
Sourcepub const fn from_unix_milliseconds_and_random(
unix_milliseconds: u64,
random: [u8; 10],
) -> Result<Self, UuidV7ConstructionError>
pub const fn from_unix_milliseconds_and_random( unix_milliseconds: u64, random: [u8; 10], ) -> Result<Self, UuidV7ConstructionError>
Assembles a UUIDv7 from an explicit 48-bit Unix-millisecond value and random bytes.
Sourcepub fn from_bytes(bytes: [u8; 16]) -> Result<Self, UuidV7Error>
pub fn from_bytes(bytes: [u8; 16]) -> Result<Self, UuidV7Error>
Validates and creates an identifier from network-order UUID bytes.
Sourcepub const fn into_bytes(self) -> [u8; 16]
pub const fn into_bytes(self) -> [u8; 16]
Returns the network-order UUID bytes.
Trait Implementations§
Source§impl Clone for ContractMigrationOperationId
impl Clone for ContractMigrationOperationId
impl Copy for ContractMigrationOperationId
Source§impl Debug for ContractMigrationOperationId
impl Debug for ContractMigrationOperationId
impl Eq for ContractMigrationOperationId
Source§impl Hash for ContractMigrationOperationId
impl Hash for ContractMigrationOperationId
Source§impl Ord for ContractMigrationOperationId
impl Ord for ContractMigrationOperationId
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 PartialOrd for ContractMigrationOperationId
impl PartialOrd for ContractMigrationOperationId
impl StructuralPartialEq for ContractMigrationOperationId
Auto Trait Implementations§
impl Freeze for ContractMigrationOperationId
impl RefUnwindSafe for ContractMigrationOperationId
impl Send for ContractMigrationOperationId
impl Sync for ContractMigrationOperationId
impl Unpin for ContractMigrationOperationId
impl UnsafeUnpin for ContractMigrationOperationId
impl UnwindSafe for ContractMigrationOperationId
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