[][src]Enum phonenumber::Type

pub enum Type {
    FixedLine,
    Mobile,
    FixedLineOrMobile,
    TollFree,
    PremiumRate,
    SharedCost,
    PersonalNumber,
    Voip,
    Pager,
    Uan,
    Emergency,
    Voicemail,
    ShortCode,
    StandardRate,
    Carrier,
    NoInternational,
    Unknown,
}

The phone number type.

Variants

FixedLine
Mobile
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
SharedCost

The cost of this call is shared between the caller and the recipient, and is hence typically less than PREMIUM_RATE calls. See // http://en.wikipedia.org/wiki/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 FIXED_LINE number. Some more information can be found here: http://en.wikipedia.org/wiki/Personal_Numbers

Voip

Voice over IP numbers. This includes TSoIP (Telephony Service over IP).

Pager
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
Voicemail

Used for "Voice Mail Access Numbers".

ShortCode
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[src]

impl PartialEq<Type> for Type[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for Type[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Type[src]

impl Debug for Type[src]

impl Hash for Type[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for Type[src]

impl<'de> Deserialize<'de> for Type[src]

Auto Trait Implementations

impl Send for Type

impl Sync for Type

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]