pub enum Type {
Show 17 variants
FixedLine,
Mobile,
FixedLineOrMobile,
TollFree,
PremiumRate,
SharedCost,
PersonalNumber,
Voip,
Pager,
Uan,
Emergency,
Voicemail,
ShortCode,
StandardRate,
Carrier,
NoInternational,
Unknown,
}Expand description
The phone number type.
Variants§
FixedLine
Fixed line numbers.
Mobile
Mobile numbers.
FixedLineOrMobile
In some regions (e.g. the USA), it is impossible to distinguish between fixed-line and mobile numbers by looking at the phone number itself.
TollFree
Freephone lines.
PremiumRate
Premium rate lines.
The cost of this call is shared between the caller and the recipient, and
is hence typically less than PremiumRate calls. See
Shared-cost Service
for more information.
PersonalNumber
A personal number is associated with a particular person, and may be
routed to either a Mobile or
FixedLine number. See
Personal Numbers for more
information.
Voip
Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
Pager
A pager number.
Uan
Used for “Universal Access Numbers” or “Company Numbers”. They may be further routed to specific offices, but allow one number to be used for a company.
Emergency
Emergency numbers.
Voicemail
Used for “Voice Mail Access Numbers”.
ShortCode
An abbreviated number, such as short codes like “10000”.
StandardRate
Carrier
NoInternational
Unknown
A phone number is of type UNKNOWN when it does not fit any of the known patterns for a specific region.
Trait Implementations§
impl Copy for Type
Source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
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>,
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more