pub struct Metadata {
pub node_count: u64,
pub record_size: u16,
pub ip_version: u16,
pub database_type: String,
pub languages: Vec<String>,
pub binary_format_major_version: u16,
pub binary_format_minor_version: u16,
pub build_epoch: u64,
pub description: BTreeMap<String, String>,
}Expand description
Public MMDB metadata.
Fields§
§node_count: u64Number of nodes in the binary search tree.
record_size: u16Width, in bits, of each tree record (normally 24, 28, or 32).
ip_version: u16Address-family version stored by the database: 4 or 6.
database_type: StringApplication-defined database type identifier.
languages: Vec<String>Languages advertised by the database.
binary_format_major_version: u16MMDB binary-format major version.
binary_format_minor_version: u16MMDB binary-format minor version.
build_epoch: u64Database build timestamp as seconds since the Unix epoch.
description: BTreeMap<String, String>Human-readable descriptions keyed by language code.
Trait Implementations§
impl Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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