pub struct OcrTextBlock {
pub text: String,
pub confidence: Option<f32>,
pub bbox: Option<BoundingBox>,
pub kind: OcrBlockKind,
}Expand description
A single OCR-detected text block.
Fields§
§text: StringThe recognized text.
confidence: Option<f32>Confidence from 0.0 to 1.0 when provided by the backend.
bbox: Option<BoundingBox>Normalized bounding box when provided by the backend.
kind: OcrBlockKindClassification for this block.
Implementations§
Trait Implementations§
Source§impl Clone for OcrTextBlock
impl Clone for OcrTextBlock
Source§fn clone(&self) -> OcrTextBlock
fn clone(&self) -> OcrTextBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OcrTextBlock
impl Debug for OcrTextBlock
Source§impl<'de> Deserialize<'de> for OcrTextBlock
impl<'de> Deserialize<'de> for OcrTextBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OcrTextBlock
impl PartialEq for OcrTextBlock
Source§impl Serialize for OcrTextBlock
impl Serialize for OcrTextBlock
impl StructuralPartialEq for OcrTextBlock
Auto Trait Implementations§
impl Freeze for OcrTextBlock
impl RefUnwindSafe for OcrTextBlock
impl Send for OcrTextBlock
impl Sync for OcrTextBlock
impl Unpin for OcrTextBlock
impl UnsafeUnpin for OcrTextBlock
impl UnwindSafe for OcrTextBlock
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request