Trait NumericFieldRandomGenerator

Source
pub trait NumericFieldRandomGenerator {
    // Required methods
    fn new(min: Option<String>, max: Option<String>, seed: u64) -> Result<Self>
       where Self: Sized;
    fn generate(&mut self, offset: u64) -> Value;
    fn generate_datum(&mut self, offset: u64) -> Datum;
}
Expand description

fields that can be randomly generated impl this trait

Required Methods§

Source

fn new(min: Option<String>, max: Option<String>, seed: u64) -> Result<Self>
where Self: Sized,

Source

fn generate(&mut self, offset: u64) -> Value

Source

fn generate_datum(&mut self, offset: u64) -> Datum

Implementors§