Types

GeoIPResponse

pub struct GeoIPResponse {
    pub error: bool,
    pub code: u16,
    pub data: GeoIPResponseData
}

GeoIPResponseApis

pub struct GeoIPResponseApis {
    pub weather: String,
    pub gis: String,
    pub open_street_map: String,
    pub google_maps: String
}

GeoIPResponseData

pub struct GeoIPResponseData {
    pub city: String,
    pub continent_code: String,
    pub continent_name: String,
    pub country_code: String,
    pub country_name: String,
    pub dma_code: Option<String>,
    pub latitude: f64,
    pub longitude: f64,
    pub postal_code: String,
    pub region: String,
    pub time_zone: String,
    pub apis: GeoIPResponseApis
}

CurrencyConversionResponse

pub struct CurrencyConversionResponse {
    pub value: f64,
    pub pretty: String
}

KumoError

pub struct KumoError {
    pub code: u16,
    pub error: bool,
    pub message: String
}

Last updated