pub struct TokenValidation {
pub name_range: RangeInclusive<usize>,
pub symbol: SymbolValidation,
}
Expand description
Defines the allowed range of name for the token and
the allowed constraints for its symbol according to SymbolValidation
.
Defaults:
- Name: From 3 to 30 (inclusive) characters allowed.
- Symbol: Only upper case letters in the range from 3 to 6 (inclusive) allowed.
Fields§
§name_range: RangeInclusive<usize>
§symbol: SymbolValidation
Implementations§
Trait Implementations§
source§impl Clone for TokenValidation
impl Clone for TokenValidation
source§fn clone(&self) -> TokenValidation
fn clone(&self) -> TokenValidation
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 TokenValidation
impl Debug for TokenValidation
Auto Trait Implementations§
impl RefUnwindSafe for TokenValidation
impl Send for TokenValidation
impl Sync for TokenValidation
impl Unpin for TokenValidation
impl UnwindSafe for TokenValidation
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