pub struct Options {Show 17 fields
pub min_len: Option<usize>,
pub max_len: Option<usize>,
pub policy: String,
pub require_upper: usize,
pub require_lower: usize,
pub require_digit: usize,
pub require_symbol: usize,
pub avoid_ambiguous: bool,
pub forbid: String,
pub allow: String,
pub max_run: usize,
pub no_sequences: bool,
pub start_letter: bool,
pub no_edge_symbol: bool,
pub chunk: usize,
pub chunk_sep: String,
pub floor_bits: Option<f64>,
}Expand description
Recipe-level settings, applied after the tokens render.
Fields§
§min_len: Option<usize>§max_len: Option<usize>§policy: Stringfit (default: drop droppable parts when too long, pad when too short) or refuse.
require_upper: usize§require_lower: usize§require_digit: usize§require_symbol: usize§avoid_ambiguous: bool§forbid: String§allow: String§max_run: usizeNo run of the same character longer than this (0 means no limit).
no_sequences: bool§start_letter: bool§no_edge_symbol: bool§chunk: usizeGroup the result with chunk_sep every this many characters (0 means none).
chunk_sep: String§floor_bits: Option<f64>The least random bits a result may have; 64 when unset.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
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
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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