[][src]Enum cheap_alerts::Carrier

pub enum Carrier {
    ATT,
    Sprint,
    TMobile,
    Verizon,
    BoostMobile,
    Cricket,
    MetroPCS,
    Tracfone,
    USCellular,
    VirginMobile,
    Other {
        domain: String,
    },
}

A cell phone carrier

Note: this is currently only US providers with support, we could include others as well. The Other case will allow for you to extend this enum with anything not currently provided

Variants

ATT

[number]@txt.att.net

Sprint

[number]@messaging.sprintpcs.com

TMobile

[number]@tmomail.net

Verizon

[number]@vtext.com

BoostMobile

[number]@myboostmobile.com

Cricket

[number]@sms.mycricket.com

MetroPCS

[number]@mymetropcs.com

Tracfone

[number]@mmst5.tracfone.com

USCellular

[number]@email.uscc.net

VirginMobile

[number]@vmobl.com

Other

Other carrier, the string provided is the domain for this carrier

Fields of Other

domain: String

Methods

impl Carrier[src]

pub fn get_domain(&self) -> &str[src]

Trait Implementations

impl Clone for Carrier[src]

impl Debug for Carrier[src]

impl FromStr for Carrier[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

This should always succeed

Auto Trait Implementations

impl RefUnwindSafe for Carrier

impl Send for Carrier

impl Sync for Carrier

impl Unpin for Carrier

impl UnwindSafe for Carrier

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.