pub struct ReferenceStats {
pub total_references_generated: usize,
pub resource_references: usize,
pub release_references: usize,
pub deal_references: usize,
pub cache_size: usize,
pub duplicate_resource_ids: usize,
pub duplicate_release_ids: usize,
pub orphaned_references: usize,
}Expand description
Statistics for reference generation
Comprehensive statistics about reference generation during streaming, including counts, cache usage, and validation issues detected.
§Example
use ddex_builder::streaming::reference_manager::StreamingReferenceManager;
let manager = StreamingReferenceManager::new();
let stats = manager.get_stats();
println!("Generated {} references total", stats.total_references_generated);
println!("Cache usage: {}/{}", stats.cache_size, 100_000);
if stats.duplicate_resource_ids > 0 {
println!("Warning: {} duplicate resource IDs found", stats.duplicate_resource_ids);
}Fields§
§total_references_generated: usizeTotal number of references generated across all types
resource_references: usizeNumber of resource references created
release_references: usizeNumber of release references created
deal_references: usizeNumber of deal references created
cache_size: usizeCurrent size of the reference cache in memory
duplicate_resource_ids: usizeNumber of duplicate resource IDs detected
duplicate_release_ids: usizeNumber of duplicate release IDs detected
orphaned_references: usizeNumber of orphaned references (references without valid targets)
Trait Implementations§
Source§impl Debug for ReferenceStats
impl Debug for ReferenceStats
Source§impl Default for ReferenceStats
impl Default for ReferenceStats
Source§fn default() -> ReferenceStats
fn default() -> ReferenceStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReferenceStats
impl RefUnwindSafe for ReferenceStats
impl Send for ReferenceStats
impl Sync for ReferenceStats
impl Unpin for ReferenceStats
impl UnwindSafe for ReferenceStats
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