#[non_exhaustive]pub struct DetectTextOutput {
pub text_detections: Option<Vec<TextDetection>>,
pub text_model_version: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.text_detections: Option<Vec<TextDetection>>
An array of text that was detected in the input image.
text_model_version: Option<String>
The model version used to detect text.
Implementations§
source§impl DetectTextOutput
impl DetectTextOutput
sourcepub fn text_detections(&self) -> Option<&[TextDetection]>
pub fn text_detections(&self) -> Option<&[TextDetection]>
An array of text that was detected in the input image.
sourcepub fn text_model_version(&self) -> Option<&str>
pub fn text_model_version(&self) -> Option<&str>
The model version used to detect text.
source§impl DetectTextOutput
impl DetectTextOutput
sourcepub fn builder() -> DetectTextOutputBuilder
pub fn builder() -> DetectTextOutputBuilder
Creates a new builder-style object to manufacture DetectTextOutput
.
Trait Implementations§
source§impl Clone for DetectTextOutput
impl Clone for DetectTextOutput
source§fn clone(&self) -> DetectTextOutput
fn clone(&self) -> DetectTextOutput
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 DetectTextOutput
impl Debug for DetectTextOutput
source§impl PartialEq<DetectTextOutput> for DetectTextOutput
impl PartialEq<DetectTextOutput> for DetectTextOutput
source§fn eq(&self, other: &DetectTextOutput) -> bool
fn eq(&self, other: &DetectTextOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for DetectTextOutput
impl RequestId for DetectTextOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for DetectTextOutput
Auto Trait Implementations§
impl RefUnwindSafe for DetectTextOutput
impl Send for DetectTextOutput
impl Sync for DetectTextOutput
impl Unpin for DetectTextOutput
impl UnwindSafe for DetectTextOutput
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