#[non_exhaustive]pub struct ComparedSourceImageFace {
pub bounding_box: Option<BoundingBox>,
pub confidence: Option<f32>,
}Expand description
Type that describes the face Amazon Rekognition chose to compare with the faces in the target. This contains a bounding box for the selected face and confidence level that the bounding box contains a face. Note that Amazon Rekognition selects the largest face in the source image for this comparison.
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.bounding_box: Option<BoundingBox>Bounding box of the face.
confidence: Option<f32>Confidence level that the selected bounding box contains a face.
Implementations§
source§impl ComparedSourceImageFace
impl ComparedSourceImageFace
sourcepub fn bounding_box(&self) -> Option<&BoundingBox>
pub fn bounding_box(&self) -> Option<&BoundingBox>
Bounding box of the face.
sourcepub fn confidence(&self) -> Option<f32>
pub fn confidence(&self) -> Option<f32>
Confidence level that the selected bounding box contains a face.
source§impl ComparedSourceImageFace
impl ComparedSourceImageFace
sourcepub fn builder() -> ComparedSourceImageFaceBuilder
pub fn builder() -> ComparedSourceImageFaceBuilder
Creates a new builder-style object to manufacture ComparedSourceImageFace.
Trait Implementations§
source§impl Clone for ComparedSourceImageFace
impl Clone for ComparedSourceImageFace
source§fn clone(&self) -> ComparedSourceImageFace
fn clone(&self) -> ComparedSourceImageFace
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 ComparedSourceImageFace
impl Debug for ComparedSourceImageFace
source§impl PartialEq for ComparedSourceImageFace
impl PartialEq for ComparedSourceImageFace
source§fn eq(&self, other: &ComparedSourceImageFace) -> bool
fn eq(&self, other: &ComparedSourceImageFace) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ComparedSourceImageFace
Auto Trait Implementations§
impl Freeze for ComparedSourceImageFace
impl RefUnwindSafe for ComparedSourceImageFace
impl Send for ComparedSourceImageFace
impl Sync for ComparedSourceImageFace
impl Unpin for ComparedSourceImageFace
impl UnwindSafe for ComparedSourceImageFace
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> 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.