pub struct ImportPlan {
pub database: String,
pub source_storage_mode: Option<StorageMode>,
pub snapshot_epoch: u64,
pub tables: Vec<ImportTablePlan>,
pub total_rows: u64,
pub schema_sha256: [u8; 32],
pub rows_sha256: [u8; 32],
}Expand description
A deterministic, validation-ready plan for streaming one standalone database into a fresh cluster database (spec section 5.2).
Fields§
§database: StringName of the cluster database the import targets.
source_storage_mode: Option<StorageMode>The source’s storage mode (informational; the import source is
normally StorageMode::Standalone, None for pre-marker databases).
snapshot_epoch: u64The consistent MVCC epoch every table was read at.
tables: Vec<ImportTablePlan>Per-table plans, ordered by table id (deterministic stream order).
total_rows: u64Total rows across every table.
schema_sha256: [u8; 32]SHA-256 over every table’s canonical schema encoding, in stream order.
rows_sha256: [u8; 32]SHA-256 over every table’s rows_sha256, in stream order.
Trait Implementations§
Source§impl Clone for ImportPlan
impl Clone for ImportPlan
Source§fn clone(&self) -> ImportPlan
fn clone(&self) -> ImportPlan
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 moreAuto Trait Implementations§
impl Freeze for ImportPlan
impl RefUnwindSafe for ImportPlan
impl Send for ImportPlan
impl Sync for ImportPlan
impl Unpin for ImportPlan
impl UnsafeUnpin for ImportPlan
impl UnwindSafe for ImportPlan
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more