pub struct StockCompGenerator { /* private fields */ }Expand description
Generates stock-based compensation data for a reporting entity.
Implementations§
Source§impl StockCompGenerator
impl StockCompGenerator
Sourcepub fn new(seed: u64) -> Self
pub fn new(seed: u64) -> Self
Create a new generator with a deterministic seed and default config.
Sourcepub fn with_config(self, config: StockCompConfig) -> Self
pub fn with_config(self, config: StockCompConfig) -> Self
Override the default configuration.
Sourcepub fn generate(
&mut self,
entity_code: &str,
employee_ids: &[String],
grant_date: NaiveDate,
period_label: &str,
reporting_date: NaiveDate,
currency: &str,
) -> StockCompSnapshot
pub fn generate( &mut self, entity_code: &str, employee_ids: &[String], grant_date: NaiveDate, period_label: &str, reporting_date: NaiveDate, currency: &str, ) -> StockCompSnapshot
Generate stock compensation data for one entity and one reporting period.
§Parameters
entity_code: company / entity identifieremployee_ids: full list of employees (top 10% become grantees)grant_date: date on which grants are made (typically fiscal year start)period_label: period string used on expense records (e.g. “FY2024”)reporting_date: last day of the reporting period (used for JE posting date)currency: reporting currency code
Auto Trait Implementations§
impl !Freeze for StockCompGenerator
impl RefUnwindSafe for StockCompGenerator
impl Send for StockCompGenerator
impl Sync for StockCompGenerator
impl Unpin for StockCompGenerator
impl UnsafeUnpin for StockCompGenerator
impl UnwindSafe for StockCompGenerator
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