pub struct MigrationPlan {
pub id: String,
pub source_model: EmbeddingModel,
pub target_model: EmbeddingModel,
pub total_embeddings: usize,
pub batch_size: usize,
pub created_at: String,
}Expand description
Describes an embedding migration operation.
§Example
use lattice_embed::migration::MigrationPlan;
use lattice_embed::EmbeddingModel;
let plan = MigrationPlan {
id: "mig-001".to_string(),
source_model: EmbeddingModel::BgeSmallEnV15,
target_model: EmbeddingModel::BgeBaseEnV15,
total_embeddings: 10_000,
batch_size: 256,
created_at: "2026-01-27T00:00:00Z".to_string(),
};
assert_eq!(plan.total_embeddings, 10_000);Fields§
§id: StringUnique migration identifier.
source_model: EmbeddingModelModel to migrate from.
target_model: EmbeddingModelModel to migrate to.
total_embeddings: usizeTotal number of embeddings to migrate.
batch_size: usizeNumber of embeddings processed per batch.
created_at: StringISO 8601 timestamp when the plan was created.
Trait Implementations§
Source§impl Clone for MigrationPlan
impl Clone for MigrationPlan
Source§fn clone(&self) -> MigrationPlan
fn clone(&self) -> MigrationPlan
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 MigrationPlan
impl Debug for MigrationPlan
Source§impl<'de> Deserialize<'de> for MigrationPlan
impl<'de> Deserialize<'de> for MigrationPlan
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 MigrationPlan
impl RefUnwindSafe for MigrationPlan
impl Send for MigrationPlan
impl Sync for MigrationPlan
impl Unpin for MigrationPlan
impl UnsafeUnpin for MigrationPlan
impl UnwindSafe for MigrationPlan
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