📁
KSoft.rs
  • KSoft.rs
  • Shared types
  • Images
    • Types
    • Endpoints
  • Bans
    • Types
    • Endpoints
  • Kumo
    • Types
    • Endpoints
  • Music
    • Types
    • Endpoints
  • Events
    • Types
    • Examples
Powered by GitBook
On this page
  • GeoIPResponse
  • GeoIPResponseApis
  • GeoIPResponseData
  • CurrencyConversionResponse
  • KumoError

Was this helpful?

  1. Kumo

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
}
PreviousEndpointsNextEndpoints

Last updated 4 years ago

Was this helpful?