pub struct FactoryConfig {
pub validate_models: bool,
pub use_transactions: bool,
pub max_batch_size: usize,
pub realistic_timestamps: bool,
pub seed: Option<u64>,
}Expand description
Configuration for factory behavior
Fields§
§validate_models: boolWhether to validate models before saving
use_transactions: boolWhether to use database transactions for batch operations
max_batch_size: usizeMaximum batch size for bulk operations
realistic_timestamps: boolWhether to generate realistic timestamps
seed: Option<u64>Seed for deterministic fake data generation
Trait Implementations§
Source§impl Clone for FactoryConfig
impl Clone for FactoryConfig
Source§fn clone(&self) -> FactoryConfig
fn clone(&self) -> FactoryConfig
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 FactoryConfig
impl Debug for FactoryConfig
Auto Trait Implementations§
impl Freeze for FactoryConfig
impl RefUnwindSafe for FactoryConfig
impl Send for FactoryConfig
impl Sync for FactoryConfig
impl Unpin for FactoryConfig
impl UnsafeUnpin for FactoryConfig
impl UnwindSafe for FactoryConfig
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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