#[non_exhaustive]pub struct DetectTextOutputBuilder { /* private fields */ }Expand description
A builder for DetectTextOutput.
Implementations§
source§impl DetectTextOutputBuilder
impl DetectTextOutputBuilder
sourcepub fn text_detections(self, input: TextDetection) -> Self
pub fn text_detections(self, input: TextDetection) -> Self
Appends an item to text_detections.
To override the contents of this collection use set_text_detections.
An array of text that was detected in the input image.
sourcepub fn set_text_detections(self, input: Option<Vec<TextDetection>>) -> Self
pub fn set_text_detections(self, input: Option<Vec<TextDetection>>) -> Self
An array of text that was detected in the input image.
sourcepub fn get_text_detections(&self) -> &Option<Vec<TextDetection>>
pub fn get_text_detections(&self) -> &Option<Vec<TextDetection>>
An array of text that was detected in the input image.
sourcepub fn text_model_version(self, input: impl Into<String>) -> Self
pub fn text_model_version(self, input: impl Into<String>) -> Self
The model version used to detect text.
sourcepub fn set_text_model_version(self, input: Option<String>) -> Self
pub fn set_text_model_version(self, input: Option<String>) -> Self
The model version used to detect text.
sourcepub fn get_text_model_version(&self) -> &Option<String>
pub fn get_text_model_version(&self) -> &Option<String>
The model version used to detect text.
sourcepub fn build(self) -> DetectTextOutput
pub fn build(self) -> DetectTextOutput
Consumes the builder and constructs a DetectTextOutput.
Trait Implementations§
source§impl Clone for DetectTextOutputBuilder
impl Clone for DetectTextOutputBuilder
source§fn clone(&self) -> DetectTextOutputBuilder
fn clone(&self) -> DetectTextOutputBuilder
Returns a copy 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 DetectTextOutputBuilder
impl Debug for DetectTextOutputBuilder
source§impl Default for DetectTextOutputBuilder
impl Default for DetectTextOutputBuilder
source§fn default() -> DetectTextOutputBuilder
fn default() -> DetectTextOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DetectTextOutputBuilder
impl PartialEq for DetectTextOutputBuilder
source§fn eq(&self, other: &DetectTextOutputBuilder) -> bool
fn eq(&self, other: &DetectTextOutputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DetectTextOutputBuilder
Auto Trait Implementations§
impl Freeze for DetectTextOutputBuilder
impl RefUnwindSafe for DetectTextOutputBuilder
impl Send for DetectTextOutputBuilder
impl Sync for DetectTextOutputBuilder
impl Unpin for DetectTextOutputBuilder
impl UnwindSafe for DetectTextOutputBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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 moreCreates a shared type from an unshared type.