pub struct Outcome {
pub converter_id: String,
pub converter_version: String,
pub detected_format: String,
pub text: String,
pub warnings: Vec<String>,
pub segments: Vec<Segment>,
pub artifact_kind: ArtifactKind,
}Expand description
What every converter returns on success.
Fields§
§converter_id: StringStable converter id from the registry.
converter_version: StringConverter version from the registry.
detected_format: StringFormat id the converter was asked to handle.
text: StringThe converted text, UTF-8, NFC, LF line endings.
warnings: Vec<String>Non-fatal notes about the conversion.
segments: Vec<Segment>Structure spans over text for the segments file.
artifact_kind: ArtifactKindHow the text was derived. Every text and structured converter
sets [ArtifactKind::Text]; the pixel-OCR converter sets
[ArtifactKind::Ocr], so the manifest records recognized text
as OCR rather than extraction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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> 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