Struct zone_detect::Database [−][src]
pub struct Database {
pub field_names: Vec<String>,
pub notice: String,
pub precision: u8,
pub table_type: TableType,
pub version: u8,
// some fields omitted
}
Expand description
Zone database.
Fields
field_names: Vec<String>
Names of all the fields in the database.
notice: String
Database notice text (e.g. for licensing information).
precision: u8
Precision of the data.
table_type: TableType
Type of data (country or timezone).
version: u8
Encoding version.
Implementations
Get a simple description of a location.
For a country database this will be the country name, for the timezone database it will be the timezone ID.
Perform a full database lookup for a location.