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

Open a zone database.

Load the database from a byte vector.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.