[][src]Enum urlshortener::providers::Provider

pub enum Provider {
    Abv8,
    BamBz,
    BitLy {
        token: String,
    },
    Bmeo,
    FifoCc,
    GooGl {
        api_key: String,
    },
    Kutt {
        api_key: String,
        host: Option<String>,
    },
    HecSu,
    HmmRs,
    IsGd,
    NowLinks,
    PhxCoIn,
    PsbeCo,
    SCoop,
    Rlu,
    SirBz,
    TinyUrl,
    TinyPh,
    TnyIm,
    UrlShortenerIo,
    VGd,
}

Used to specify which provider to use to generate a short URL.

Variants

Abv8

http://abv8.me provider

Notes:

  • You may not shorten more than 20 unique URLs within a 3-minute period.
  • You may not shorten more than 60 unique URLs within a 15-minute period.
BamBz

https://bam.bz provider

BitLy

https://bit.ly provider

Fields of BitLy

token: String

A token string which you may obtain on the provider web service page.

Bmeo

http://bmeo.org provider

FifoCc

http://fifo.cc provider

GooGl

https://goo.gl provider of Google

Fields of GooGl

api_key: String

An api key string which you may obtain on the provider web service page.

Kutt

https://kutt.it provider, can be self hosted

Fields of Kutt

api_key: String

An api key string which you may obtain on the provider web service page.

host: Option<String>

The api host, defaults to 'https://kutt.it'

HecSu

https://hec.su provider

Notes:

  • Limited to 3000 API requests per day
HmmRs

http://hmm.rs provider

IsGd

https://is.gd provider

http://nowlinks.net provider

PhxCoIn

http://phx.co.in provider

Notes:

  • After some time the service will display ads
  • Instead of redirecting, a preview page will be displayed
  • Currently unstable
PsbeCo

http://psbe.co provider

SCoop

http://s.coop provider

Rlu

http://rlu.ru provider

Notes:

  • If you send a lot of requests from one IP, it can be blocked. If you plan to add more then 100 URLs in one hour, please let the technical support know. Otherwise your IP can be blocked unexpectedly. Prior added URLs can be deleted.
SirBz

http://sirbz.com provider

Notes:

  • By default, you are limited to 250 requests per 15 minutes.
TinyUrl

http://tinyurl.com provider

Notes:

  • This service does not provide any API.
  • The implementation result depends on the service result web page.
TinyPh

http://tiny.ph provider

TnyIm

http://tny.im provider

UrlShortenerIo

http://url-shortener.io provider

VGd

https://v.gd provider

Methods

impl Provider[src]

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

Converts the Provider variant into its domain name equivilant

Trait Implementations

impl Clone for Provider[src]

impl Debug for Provider[src]

Auto Trait Implementations

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,