pub struct MigrationId(/* private fields */);Expand description
A stable identifier for one domain-local schema migration attempt.
Implementations§
Source§impl MigrationId
impl MigrationId
Trait Implementations§
Source§impl AsRef<[u8]> for MigrationId
impl AsRef<[u8]> for MigrationId
Source§impl Clone for MigrationId
impl Clone for MigrationId
Source§fn clone(&self) -> MigrationId
fn clone(&self) -> MigrationId
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 MigrationId
impl Debug for MigrationId
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for MigrationId
impl<'bytes, Ctx> Decode<'bytes, Ctx> for MigrationId
Source§impl Display for MigrationId
impl Display for MigrationId
Source§impl<Ctx> Encode<Ctx> for MigrationId
impl<Ctx> Encode<Ctx> for MigrationId
Source§impl FromStr for MigrationId
impl FromStr for MigrationId
Source§impl Hash for MigrationId
impl Hash for MigrationId
Source§impl Ord for MigrationId
impl Ord for MigrationId
Source§fn cmp(&self, other: &MigrationId) -> Ordering
fn cmp(&self, other: &MigrationId) -> Ordering
1.21.0 · 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 MigrationId
impl PartialEq for MigrationId
Source§impl PartialOrd for MigrationId
impl PartialOrd for MigrationId
impl Copy for MigrationId
impl Eq for MigrationId
impl StructuralPartialEq for MigrationId
Auto Trait Implementations§
impl Freeze for MigrationId
impl RefUnwindSafe for MigrationId
impl Send for MigrationId
impl Sync for MigrationId
impl Unpin for MigrationId
impl UnwindSafe for MigrationId
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<T> RecordKey for T
impl<T> RecordKey for T
Source§fn encode_key(&self) -> Result<Vec<u8>, RecordError>
fn encode_key(&self) -> Result<Vec<u8>, RecordError>
Encodes this key into its unique durable representation.
Source§fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
Strictly decodes a key from its unique durable representation.
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)