pub struct GenConfig {
pub batch_size: usize,
pub locale: Language,
pub null_probability: f32,
pub strategy: GenerationStrategy,
pub parallelism: usize,
}Expand description
生成配置
Fields§
§batch_size: usize每批次生成数量
locale: Language区域设置
null_probability: f32空值概率 (0.0-1.0)
strategy: GenerationStrategy生成策略
parallelism: usize并行度 (0表示自动检测)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenConfig
impl RefUnwindSafe for GenConfig
impl Send for GenConfig
impl Sync for GenConfig
impl Unpin for GenConfig
impl UnwindSafe for GenConfig
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