pub struct StreamingJsonWriterConfigBuilder { /* private fields */ }
Expand description
Builder for streaming JSON writer configuration
Implementations§
Source§impl StreamingJsonWriterConfigBuilder
impl StreamingJsonWriterConfigBuilder
Sourcepub fn buffer_size(self, size: usize) -> Self
pub fn buffer_size(self, size: usize) -> Self
Set buffer size
Sourcepub fn pretty_print(self, enabled: bool) -> Self
pub fn pretty_print(self, enabled: bool) -> Self
Enable pretty printing
Sourcepub fn max_memory_before_flush(self, size: usize) -> Self
pub fn max_memory_before_flush(self, size: usize) -> Self
Set maximum memory before flush
Sourcepub fn array_chunk_size(self, size: usize) -> Self
pub fn array_chunk_size(self, size: usize) -> Self
Set array chunk size
Sourcepub fn field_optimization(self, enabled: bool) -> Self
pub fn field_optimization(self, enabled: bool) -> Self
Enable field optimization
Sourcepub fn buffer_reuse(self, enabled: bool) -> Self
pub fn buffer_reuse(self, enabled: bool) -> Self
Enable buffer reuse
Sourcepub fn indent_size(self, size: usize) -> Self
pub fn indent_size(self, size: usize) -> Self
Set indent size
Sourcepub fn build(self) -> StreamingJsonWriterConfig
pub fn build(self) -> StreamingJsonWriterConfig
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingJsonWriterConfigBuilder
impl RefUnwindSafe for StreamingJsonWriterConfigBuilder
impl Send for StreamingJsonWriterConfigBuilder
impl Sync for StreamingJsonWriterConfigBuilder
impl Unpin for StreamingJsonWriterConfigBuilder
impl UnwindSafe for StreamingJsonWriterConfigBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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