pub struct JsonOptions /* private fields */ How records are sent as JSON.
compression_on changes nothing: JSON requests are not compressed. validate_json has a JSON BulkInserter check each record it is given; insert_records_from_json leaves the checking to the server.
Implementations
Source
impl JsonOptions
Source
pub const VALIDATE_JSON: bool = false
Whether records are checked by default.
Source
pub const COMPRESSION_ON: bool = true
Whether compression is on by default.
Options with validation and compression on or off as given.
Source
pub fn is_validate_json(&self) -> bool
Whether records are checked.
Source
pub fn is_compression_on(&self) -> bool
Whether compression is on.
Trait Implementations
Source
impl Clone for JsonOptions
Source
fn clone(&self) -> JsonOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource
impl Copy for JsonOptions
Source
impl Debug for JsonOptions
Source
impl Display for JsonOptions
Source
impl Eq for JsonOptions
Source
impl Hash for JsonOptions
Source
impl PartialEq for JsonOptions
Source
fn eq(&self, other: &JsonOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source