pub struct PostalCode { /* private fields */ }Expand description
A validated postal code with country context.
Implementations§
Source§impl PostalCode
impl PostalCode
Source§impl PostalCode
impl PostalCode
Trait Implementations§
Source§impl Clone for PostalCode
impl Clone for PostalCode
Source§fn clone(&self) -> PostalCode
fn clone(&self) -> PostalCode
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 PostalCode
impl Debug for PostalCode
Source§impl<'de> Deserialize<'de> for PostalCode
impl<'de> Deserialize<'de> for PostalCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for PostalCode
impl Hash for PostalCode
Source§impl Ord for PostalCode
impl Ord for PostalCode
Source§fn cmp(&self, other: &PostalCode) -> Ordering
fn cmp(&self, other: &PostalCode) -> 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
Source§impl PartialEq for PostalCode
impl PartialEq for PostalCode
Source§impl PartialOrd for PostalCode
impl PartialOrd for PostalCode
Source§impl Serialize for PostalCode
impl Serialize for PostalCode
impl Eq for PostalCode
impl StructuralPartialEq for PostalCode
Auto Trait Implementations§
impl Freeze for PostalCode
impl RefUnwindSafe for PostalCode
impl Send for PostalCode
impl Sync for PostalCode
impl Unpin for PostalCode
impl UnwindSafe for PostalCode
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