pub struct StreamingConfig {
pub chunk_size: usize,
pub component_buffer_size: usize,
pub validate_during_parse: bool,
pub skip_malformed: bool,
/* private fields */
}Expand description
Configuration for streaming parser
Fields§
§chunk_size: usizeChunk size for reading (default: 64KB)
component_buffer_size: usizeBuffer size for components (default: 1000)
validate_during_parse: boolWhether to validate components during parsing
skip_malformed: boolSkip malformed components instead of erroring
Implementations§
Source§impl StreamingConfig
impl StreamingConfig
Sourcepub fn with_chunk_size(self, size: usize) -> Self
pub fn with_chunk_size(self, size: usize) -> Self
Set chunk size for reading
Sourcepub fn with_buffer_size(self, size: usize) -> Self
pub fn with_buffer_size(self, size: usize) -> Self
Set component buffer size
Sourcepub fn with_progress_callback<F>(self, callback: F) -> Self
pub fn with_progress_callback<F>(self, callback: F) -> Self
Set progress callback
Sourcepub const fn with_validation(self, validate: bool) -> Self
pub const fn with_validation(self, validate: bool) -> Self
Enable/disable validation during parsing
Sourcepub const fn with_skip_malformed(self, skip: bool) -> Self
pub const fn with_skip_malformed(self, skip: bool) -> Self
Enable/disable skipping malformed components
Trait Implementations§
Source§impl Clone for StreamingConfig
impl Clone for StreamingConfig
Source§fn clone(&self) -> StreamingConfig
fn clone(&self) -> StreamingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamingConfig
impl Debug for StreamingConfig
Auto Trait Implementations§
impl Freeze for StreamingConfig
impl !RefUnwindSafe for StreamingConfig
impl Send for StreamingConfig
impl Sync for StreamingConfig
impl Unpin for StreamingConfig
impl UnsafeUnpin for StreamingConfig
impl !UnwindSafe for StreamingConfig
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> 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