pub struct FormatGenerator { /* private fields */ }Expand description
The generator with DataValue::String formatted by specified format with evaluating by Evaluator
Trait Implementations§
Source§impl Clone for FormatGenerator
impl Clone for FormatGenerator
Source§fn clone(&self) -> FormatGenerator
fn clone(&self) -> FormatGenerator
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 FormatGenerator
impl Debug for FormatGenerator
Source§impl<R: Randomizer + ?Sized> GeneratorBase<R> for FormatGenerator
impl<R: Randomizer + ?Sized> GeneratorBase<R> for FormatGenerator
Source§fn create(builder: GeneratorBuilder) -> Result<Self, BuildError>where
Self: Sized,
fn create(builder: GeneratorBuilder) -> Result<Self, BuildError>where
Self: Sized,
Create generator from builder
Source§fn is_nullable(&self) -> bool
fn is_nullable(&self) -> bool
Can generate null flag
Source§fn generate_without_null(
&self,
_rng: &mut R,
context: &DataValueMap<&str>,
) -> Result<DataValue, GenerateError>
fn generate_without_null( &self, _rng: &mut R, context: &DataValueMap<&str>, ) -> Result<DataValue, GenerateError>
Generate dummy data not considering nullable
Source§fn is_required(&self) -> bool
fn is_required(&self) -> bool
Cannot generate null flag
Source§fn generate(
&self,
rng: &mut R,
context: &DataValueMap<&str>,
) -> Result<DataValue, GenerateError>
fn generate( &self, rng: &mut R, context: &DataValueMap<&str>, ) -> Result<DataValue, GenerateError>
Generate dummy data considering nullable
Source§impl PartialEq for FormatGenerator
impl PartialEq for FormatGenerator
impl StructuralPartialEq for FormatGenerator
Auto Trait Implementations§
impl Freeze for FormatGenerator
impl RefUnwindSafe for FormatGenerator
impl Send for FormatGenerator
impl Sync for FormatGenerator
impl Unpin for FormatGenerator
impl UnwindSafe for FormatGenerator
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> 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