pub struct StreamingResult {
pub releases_written: usize,
pub resources_written: usize,
pub deals_written: usize,
pub bytes_written: usize,
pub warnings: Vec<BuildWarning>,
pub peak_memory_usage: usize,
}Expand description
Result of streaming build operation
Contains comprehensive statistics and metadata about a completed streaming DDEX XML build operation, including performance metrics and any warnings that were generated during the process.
§Example
use ddex_builder::streaming::StreamingResult;
// After completing a streaming build
let result = streaming_builder.finish_message()?;
println!("Built {} releases with {} resources",
result.releases_written, result.resources_written);
println!("Generated {} bytes using {} peak memory",
result.bytes_written, result.peak_memory_usage);
if !result.warnings.is_empty() {
println!("Warnings: {:?}", result.warnings);
}Fields§
§releases_written: usizeTotal number of releases written to the stream
resources_written: usizeTotal number of resources (tracks/recordings) written to the stream
deals_written: usizeTotal number of deals written to the stream
bytes_written: usizeTotal bytes written to the output stream
warnings: Vec<BuildWarning>Any warnings generated during the streaming operation
peak_memory_usage: usizePeak memory usage in bytes during the streaming process
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingResult
impl RefUnwindSafe for StreamingResult
impl Send for StreamingResult
impl Sync for StreamingResult
impl Unpin for StreamingResult
impl UnwindSafe for StreamingResult
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