pub struct WriterOptions {
pub ip_version: u16,
pub record_size: u16,
pub database_type: String,
pub description: BTreeMap<String, String>,
pub languages: Vec<String>,
pub build_epoch: u64,
}Expand description
Configuration for a Writer.
Fields§
§ip_version: u16IP version of the database: 4 or 6. For an IPv6 database, IPv4
networks are stored in the IPv4-mapped subtree.
record_size: u16Search tree record size in bits: 24, 28, or 32. Larger records
allow more nodes at the cost of file size.
database_type: StringValue for the database_type metadata field.
description: BTreeMap<String, String>Localized descriptions for the description metadata field.
languages: Vec<String>Languages present in description.
build_epoch: u64Build time as a Unix timestamp for the build_epoch metadata field.
Trait Implementations§
Source§impl Clone for WriterOptions
impl Clone for WriterOptions
Auto Trait Implementations§
impl Freeze for WriterOptions
impl RefUnwindSafe for WriterOptions
impl Send for WriterOptions
impl Sync for WriterOptions
impl Unpin for WriterOptions
impl UnsafeUnpin for WriterOptions
impl UnwindSafe for WriterOptions
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