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>>
Implementations§
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 moresource§impl Debug for SymbolValidation
impl Debug for SymbolValidation
source§impl Default for SymbolValidation
impl Default for SymbolValidation
Auto Trait Implementations§
impl RefUnwindSafe for SymbolValidation
impl Send for SymbolValidation
impl Sync for SymbolValidation
impl Unpin for SymbolValidation
impl UnwindSafe for SymbolValidation
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