ReferenceSdkRustTypes
DocumentTimings
Rust struct goodmem::models::DocumentTimings: declaration, fields or variants, and implementations.
Struct DocumentTimings
goodmem::models::DocumentTimings
Aggregate timing statistics for an OCR request.
pub struct DocumentTimings {
pub wall_time_ms: i64,
pub sum_queue_wait_ms: i64,
pub sum_render_ms: i64,
pub sum_ocr_ms: i64,
pub sum_page_total_ms: i64,
}Fields
wall_time_ms
pub wall_time_ms: i64
End-to-end request time (ms)
Wire name: wallTimeMs.
sum_queue_wait_ms
pub sum_queue_wait_ms: i64
Sum of per-page queue wait times (ms)
Wire name: sumQueueWaitMs.
sum_render_ms
pub sum_render_ms: i64
Sum of per-page render times (ms)
Wire name: sumRenderMs.
sum_ocr_ms
pub sum_ocr_ms: i64
Sum of per-page OCR times (ms)
Wire name: sumOcrMs.
sum_page_total_ms
pub sum_page_total_ms: i64
Sum of per-page total times (ms)
Wire name: sumPageTotalMs.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for DocumentTimingsimpl std::fmt::Debug for DocumentTimings