ip_api4rs/
constant.rs

1//! # Constants
2//!
3//! This module defines the constants used in the library
4
5/// Defines the http host for the ip-api.com service
6pub const HTTP_HOST: &str = "http://ip-api.com/json/";
7
8/// Defines the https host for the ip-api.com service
9pub const HTTPS_HOST: &str = "https://ip-api.com/json/";
10
11/// The string to check the message against when an error occurred.
12pub const ERROR_RESERVED_RANGE: &str = "reserved range";
13
14/// The string to check the message against when an invalid query occurred.
15pub const ERROR_INVALID_QUERY: &str = "invalid query";