pub struct PopulationConfig {
pub table_name: String,
pub row_count: usize,
pub batch_size: usize,
pub seed: Option<u64>,
pub columns: Vec<ColumnConfig>,
}Expand description
Defines the complete configuration for a database population task.
This struct specifies the target table, the number of rows to generate, performance settings, and a detailed schema for each column.
Fields§
§table_name: String§row_count: usize§batch_size: usize§seed: Option<u64>§columns: Vec<ColumnConfig>Trait Implementations§
Source§impl Clone for PopulationConfig
impl Clone for PopulationConfig
Source§fn clone(&self) -> PopulationConfig
fn clone(&self) -> PopulationConfig
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 PopulationConfig
impl Debug for PopulationConfig
Source§impl Default for PopulationConfig
impl Default for PopulationConfig
Source§impl<'de> Deserialize<'de> for PopulationConfig
impl<'de> Deserialize<'de> for PopulationConfig
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 PopulationConfig
impl RefUnwindSafe for PopulationConfig
impl Send for PopulationConfig
impl Sync for PopulationConfig
impl Unpin for PopulationConfig
impl UnwindSafe for PopulationConfig
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