pub struct DataGenConfig {
pub batch_size: usize,
pub locale: String,
pub null_probability: f32,
pub parallelism: usize,
pub strategy: String,
pub output_format: OutputFormat,
pub fields: HashMap<String, FieldConfig>,
pub generators: Vec<GeneratorConfig>,
pub memory_config: MemoryConfig,
}Expand description
数据生成配置
Fields§
§batch_size: usize每批次生成数量
locale: String区域设置
null_probability: f32空值概率 (0.0-1.0)
parallelism: usize并行度 (0表示自动检测)
strategy: String生成策略
output_format: OutputFormat输出格式
fields: HashMap<String, FieldConfig>字段配置
generators: Vec<GeneratorConfig>全局生成器配置
memory_config: MemoryConfig内存配置
Trait Implementations§
Source§impl Clone for DataGenConfig
impl Clone for DataGenConfig
Source§fn clone(&self) -> DataGenConfig
fn clone(&self) -> DataGenConfig
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 DataGenConfig
impl Debug for DataGenConfig
Source§impl Default for DataGenConfig
impl Default for DataGenConfig
Source§impl<'de> Deserialize<'de> for DataGenConfig
impl<'de> Deserialize<'de> for DataGenConfig
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 DataGenConfig
impl RefUnwindSafe for DataGenConfig
impl Send for DataGenConfig
impl Sync for DataGenConfig
impl Unpin for DataGenConfig
impl UnwindSafe for DataGenConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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