pub struct MigrationBatch {
pub slot: u16,
pub entries: Vec<MigrationEntry>,
pub is_final: bool,
pub sequence: u64,
}Expand description
Represents a batch of keys to migrate.
Fields§
§slot: u16The slot being migrated.
entries: Vec<MigrationEntry>Keys and their values in this batch.
is_final: boolWhether this is the final batch.
sequence: u64Sequence number for ordering.
Implementations§
Source§impl MigrationBatch
impl MigrationBatch
Trait Implementations§
Source§impl Clone for MigrationBatch
impl Clone for MigrationBatch
Source§fn clone(&self) -> MigrationBatch
fn clone(&self) -> MigrationBatch
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 MigrationBatch
impl Debug for MigrationBatch
Source§impl<'de> Deserialize<'de> for MigrationBatch
impl<'de> Deserialize<'de> for MigrationBatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MigrationBatch
impl RefUnwindSafe for MigrationBatch
impl Send for MigrationBatch
impl Sync for MigrationBatch
impl Unpin for MigrationBatch
impl UnsafeUnpin for MigrationBatch
impl UnwindSafe for MigrationBatch
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