pub struct ImportOptions {
pub format: ImportFormat,
pub cidr_field: Option<String>,
pub end_ip_field: Option<String>,
pub unflatten_dots: bool,
pub database_type: Option<String>,
pub build_options: BuildOptions,
}Expand description
Configuration options for importing JSONL or CSV datasets into .coi.
Fields§
§format: ImportFormat§cidr_field: Option<String>Name of the CIDR/IP column or JSON key (defaults to "cidr", or auto-detects "network"/"ip" in CSV).
end_ip_field: Option<String>Optional end-IP column/key when input specifies inclusive [start_ip, end_ip] ranges instead of CIDRs.
unflatten_dots: boolUnflatten dot-separated CSV column names (e.g. country.iso_code) into nested structs (default true).
database_type: Option<String>Optional database_type label stored in Metadata.
build_options: BuildOptionsBuild options (profile, compression, pruning, row ordering, etc.).
Trait Implementations§
Source§impl Clone for ImportOptions
impl Clone for ImportOptions
Source§impl Debug for ImportOptions
impl Debug for ImportOptions
Auto Trait Implementations§
impl Forget for ImportOptions
impl Freeze for ImportOptions
impl Move for ImportOptions
impl RefUnwindSafe for ImportOptions
impl Send for ImportOptionswhere
RawVecInner: Send,
impl Sync for ImportOptionswhere
RawVecInner: Sync,
impl Unpin for ImportOptions
impl UnsafeUnpin for ImportOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ImportOptionswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more