Struct gip::ProviderInfo [] [src]

pub struct ProviderInfo {
    pub name: String,
    pub ptype: ProviderType,
    pub timeout: usize,
    pub url: String,
    pub key: Vec<String>,
}

Fields

name

Provider name

ptype

Provider format

timeout

Timeout

url

URL for GET

key

Key for JSON format

Methods

impl ProviderInfo

fn new() -> Self

fn from_toml(s: &str) -> Vec<ProviderInfo>

Load provider info from TOML string

fn create(&self) -> Box<Provider>

Create Provider from this info