pub struct InstantiateOpts {
pub seed: i64,
pub max_depth: usize,
pub max_repeated: usize,
pub p_optional: f64,
pub quiet: bool,
}Expand description
Generation parameters.
Fields§
§seed: i64User-visible integer seed (recorded in # seed: comment).
max_depth: usizeMaximum recursion depth for nested messages (default 4).
max_repeated: usizeMaximum number of elements for repeated fields (default 3).
p_optional: f64Probability [0,1] of populating an optional field (default 0.7).
quiet: boolSuppress warnings to stderr.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstantiateOpts
impl RefUnwindSafe for InstantiateOpts
impl Send for InstantiateOpts
impl Sync for InstantiateOpts
impl Unpin for InstantiateOpts
impl UnsafeUnpin for InstantiateOpts
impl UnwindSafe for InstantiateOpts
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