pub struct GenerationContext {
pub seed: u64,
pub fiscal_year: u32,
pub company_code: String,
pub industry: String,
pub extra: HashMap<String, String>,
}Expand description
Context provided to generator plugins during data generation.
Fields§
§seed: u64RNG seed for reproducibility.
fiscal_year: u32Fiscal year being generated.
company_code: StringCompany code being generated for.
industry: StringIndustry sector.
extra: HashMap<String, String>Additional context key-value pairs.
Implementations§
Trait Implementations§
Source§impl Clone for GenerationContext
impl Clone for GenerationContext
Source§fn clone(&self) -> GenerationContext
fn clone(&self) -> GenerationContext
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 GenerationContext
impl Debug for GenerationContext
Source§impl<'de> Deserialize<'de> for GenerationContext
impl<'de> Deserialize<'de> for GenerationContext
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 GenerationContext
impl RefUnwindSafe for GenerationContext
impl Send for GenerationContext
impl Sync for GenerationContext
impl Unpin for GenerationContext
impl UnwindSafe for GenerationContext
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