pub struct ConversionResult {
pub document: DoclingDocument,
pub status: ConversionStatus,
pub input_name: String,
pub format: InputFormat,
pub errors: Vec<ErrorItem>,
pub redaction: Option<RedactionReport>,
}Expand description
The result of converting one crate::SourceDocument.
Mirrors docling.datamodel.document.ConversionResult. The converted
DoclingDocument is exposed directly as document, matching the target
API (result.document.export_to_markdown()); errors is non-empty
exactly when status is ConversionStatus::PartialSuccess — today the
one recorded error is a spent document budget.
Fields§
§document: DoclingDocument§status: ConversionStatus§input_name: String§format: InputFormat§errors: Vec<ErrorItem>§redaction: Option<RedactionReport>What the PII redaction pass removed (#621), when
DocumentConverter::redact_pii
ran: counts per label, and the mapping only when asked for.
Trait Implementations§
Source§impl Clone for ConversionResult
impl Clone for ConversionResult
Auto Trait Implementations§
impl Freeze for ConversionResult
impl RefUnwindSafe for ConversionResult
impl Send for ConversionResult
impl Sync for ConversionResult
impl Unpin for ConversionResult
impl UnsafeUnpin for ConversionResult
impl UnwindSafe for ConversionResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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