pub struct Database {
pub field_names: Vec<String>,
pub notice: String,
pub precision: u8,
pub table_type: TableType,
pub version: u8,
/* private fields */
}
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§
Source§impl Database
impl Database
Sourcepub fn simple_lookup(&self, location: Location) -> Option<String>
pub fn simple_lookup(&self, location: Location) -> Option<String>
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.
Sourcepub fn lookup(&self, location: Location) -> ZoneLookup
pub fn lookup(&self, location: Location) -> ZoneLookup
Perform a full database lookup for a location.
Auto Trait Implementations§
impl Freeze for Database
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more