pub struct Phone {
pub raw: String,
pub normalized: String,
pub international: Option<String>,
pub phone_type: PhoneType,
pub label: Option<String>,
}Expand description
A phone number with metadata
Fields§
§raw: StringRaw phone number as found
normalized: StringNormalized phone number (digits only)
international: Option<String>International format if parseable
phone_type: PhoneTypePhone type if detectable
label: Option<String>Label (e.g., “main”, “fax”, “mobile”)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Phone
impl<'de> Deserialize<'de> for Phone
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
impl StructuralPartialEq for Phone
Auto Trait Implementations§
impl Freeze for Phone
impl RefUnwindSafe for Phone
impl Send for Phone
impl Sync for Phone
impl Unpin for Phone
impl UnwindSafe for Phone
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