pub struct FieldConfig {
pub length_preference: Option<LengthPreference>,
pub value_range: Option<ValueRange>,
pub fixed_values: Option<Vec<String>>,
pub pattern: Option<String>,
}
Expand description
Configuration for generating field samples
Fields§
§length_preference: Option<LengthPreference>
Preferred length for generated strings
value_range: Option<ValueRange>
Constrain generated values
fixed_values: Option<Vec<String>>
Fixed values to choose from
pattern: Option<String>
Regex pattern to match (for validation)
Trait Implementations§
Source§impl Clone for FieldConfig
impl Clone for FieldConfig
Source§fn clone(&self) -> FieldConfig
fn clone(&self) -> FieldConfig
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 FieldConfig
impl Debug for FieldConfig
Source§impl Default for FieldConfig
impl Default for FieldConfig
Source§fn default() -> FieldConfig
fn default() -> FieldConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FieldConfig
impl<'de> Deserialize<'de> for FieldConfig
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 FieldConfig
impl RefUnwindSafe for FieldConfig
impl Send for FieldConfig
impl Sync for FieldConfig
impl Unpin for FieldConfig
impl UnwindSafe for FieldConfig
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