pub struct SymbolValidation {
pub length: RangeInclusive<usize>,
pub allow_upper: bool,
pub allow_lower: bool,
pub allow_numeric: bool,
pub allowed_special: Option<Vec<u8>>,
}
Expand description
Defines the length, letter casing and any special characters that are allowed as the symbol for the token.
By default allows only upper case letters with the length being from 3 to 6 characters inclusive.
Fields§
§length: RangeInclusive<usize>
§allow_upper: bool
§allow_lower: bool
§allow_numeric: bool
§allowed_special: Option<Vec<u8>>
Trait Implementations§
source§impl Clone for SymbolValidation
impl Clone for SymbolValidation
source§fn clone(&self) -> SymbolValidation
fn clone(&self) -> SymbolValidation
Returns a copy 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 more