pub struct DecoderOptions { /* private fields */ }
Expand description
Options for JSON decoding
Implementations
sourceimpl DecoderOptions
impl DecoderOptions
pub fn new() -> Self
sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Set the batch size (number of records to load at one time)
sourcepub fn with_projection(self, projection: Vec<String>) -> Self
pub fn with_projection(self, projection: Vec<String>) -> Self
Set the reader’s column projection
sourcepub fn with_format_strings(
self,
format_strings: HashMap<String, String>
) -> Self
pub fn with_format_strings(
self,
format_strings: HashMap<String, String>
) -> Self
Set the decoder’s format Strings param
Trait Implementations
sourceimpl Clone for DecoderOptions
impl Clone for DecoderOptions
sourcefn clone(&self) -> DecoderOptions
fn clone(&self) -> DecoderOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DecoderOptions
impl Debug for DecoderOptions
sourceimpl Default for DecoderOptions
impl Default for DecoderOptions
sourceimpl PartialEq<DecoderOptions> for DecoderOptions
impl PartialEq<DecoderOptions> for DecoderOptions
sourcefn eq(&self, other: &DecoderOptions) -> bool
fn eq(&self, other: &DecoderOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DecoderOptions) -> bool
fn ne(&self, other: &DecoderOptions) -> bool
This method tests for !=
.
impl StructuralPartialEq for DecoderOptions
Auto Trait Implementations
impl RefUnwindSafe for DecoderOptions
impl Send for DecoderOptions
impl Sync for DecoderOptions
impl Unpin for DecoderOptions
impl UnwindSafe for DecoderOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more