pub enum AddressValidationMode {
Practical,
StrictAscii,
Internationalized,
}Expand description
Validation profile for address-like primitives.
Variants§
Practical
Conservative ASCII validation for common production addresses.
StrictAscii
ASCII-only validation with conservative domain-label rules.
Internationalized
Allows non-ASCII text while still rejecting control characters and obvious separators.
Trait Implementations§
Source§impl Clone for AddressValidationMode
impl Clone for AddressValidationMode
Source§fn clone(&self) -> AddressValidationMode
fn clone(&self) -> AddressValidationMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddressValidationMode
impl Debug for AddressValidationMode
Source§impl Default for AddressValidationMode
impl Default for AddressValidationMode
Source§fn default() -> AddressValidationMode
fn default() -> AddressValidationMode
Returns the “default value” for a type. Read more
Source§impl Hash for AddressValidationMode
impl Hash for AddressValidationMode
Source§impl Ord for AddressValidationMode
impl Ord for AddressValidationMode
Source§fn cmp(&self, other: &AddressValidationMode) -> Ordering
fn cmp(&self, other: &AddressValidationMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AddressValidationMode
impl PartialEq for AddressValidationMode
Source§fn eq(&self, other: &AddressValidationMode) -> bool
fn eq(&self, other: &AddressValidationMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AddressValidationMode
impl PartialOrd for AddressValidationMode
impl Copy for AddressValidationMode
impl Eq for AddressValidationMode
impl StructuralPartialEq for AddressValidationMode
Auto Trait Implementations§
impl Freeze for AddressValidationMode
impl RefUnwindSafe for AddressValidationMode
impl Send for AddressValidationMode
impl Sync for AddressValidationMode
impl Unpin for AddressValidationMode
impl UnsafeUnpin for AddressValidationMode
impl UnwindSafe for AddressValidationMode
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