Enum AddressValidationMode
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§
§impl Clone for AddressValidationMode
impl Clone for AddressValidationMode
§fn clone(&self) -> AddressValidationMode
fn clone(&self) -> AddressValidationMode
Returns a duplicate 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§impl Debug for AddressValidationMode
impl Debug for AddressValidationMode
§impl Default for AddressValidationMode
impl Default for AddressValidationMode
§fn default() -> AddressValidationMode
fn default() -> AddressValidationMode
Returns the “default value” for a type. Read more
§impl Hash for AddressValidationMode
impl Hash for AddressValidationMode
§impl Ord for AddressValidationMode
impl Ord for AddressValidationMode
§fn cmp(&self, other: &AddressValidationMode) -> Ordering
fn cmp(&self, other: &AddressValidationMode) -> Ordering
1.21.0 · 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
§impl PartialEq for AddressValidationMode
impl PartialEq for AddressValidationMode
§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