pub struct StreamingConfig {
pub max_buffer_size: usize,
pub deterministic: bool,
pub determinism_config: DeterminismConfig,
pub validate_during_stream: bool,
pub progress_callback_frequency: usize,
}Expand description
Configuration for streaming builder
Controls the behavior of the streaming DDEX XML builder including buffer management, deterministic ordering, validation, and progress reporting.
§Example
use ddex_builder::streaming::StreamingConfig;
use ddex_builder::determinism::DeterminismConfig;
let config = StreamingConfig {
max_buffer_size: 5 * 1024 * 1024, // 5MB buffer
deterministic: true,
determinism_config: DeterminismConfig::default(),
validate_during_stream: true,
progress_callback_frequency: 50, // Report every 50 items
};Fields§
§max_buffer_size: usizeMaximum buffer size in bytes before automatic flush (default: 10MB)
deterministic: boolWhether to use deterministic ordering for consistent output
determinism_config: DeterminismConfigDetailed configuration for deterministic behavior
validate_during_stream: boolWhether to validate data while streaming (slower but safer)
progress_callback_frequency: usizeProgress callback frequency - report progress every N items processed
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 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