Struct aws_sdk_rekognition::types::CompareFacesMatch
source · #[non_exhaustive]pub struct CompareFacesMatch {
pub similarity: Option<f32>,
pub face: Option<ComparedFace>,
}Expand description
Provides information about a face in a target image that matches the source image face analyzed by CompareFaces. The Face property contains the bounding box of the face in the target image. The Similarity property is the confidence that the source image face matches the face in the bounding box.
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.similarity: Option<f32>Level of confidence that the faces match.
face: Option<ComparedFace>Provides face metadata (bounding box and confidence that the bounding box actually contains a face).
Implementations§
source§impl CompareFacesMatch
impl CompareFacesMatch
sourcepub fn similarity(&self) -> Option<f32>
pub fn similarity(&self) -> Option<f32>
Level of confidence that the faces match.
sourcepub fn face(&self) -> Option<&ComparedFace>
pub fn face(&self) -> Option<&ComparedFace>
Provides face metadata (bounding box and confidence that the bounding box actually contains a face).
source§impl CompareFacesMatch
impl CompareFacesMatch
sourcepub fn builder() -> CompareFacesMatchBuilder
pub fn builder() -> CompareFacesMatchBuilder
Creates a new builder-style object to manufacture CompareFacesMatch.
Trait Implementations§
source§impl Clone for CompareFacesMatch
impl Clone for CompareFacesMatch
source§fn clone(&self) -> CompareFacesMatch
fn clone(&self) -> CompareFacesMatch
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 CompareFacesMatch
impl Debug for CompareFacesMatch
source§impl PartialEq for CompareFacesMatch
impl PartialEq for CompareFacesMatch
source§fn eq(&self, other: &CompareFacesMatch) -> bool
fn eq(&self, other: &CompareFacesMatch) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CompareFacesMatch
Auto Trait Implementations§
impl Freeze for CompareFacesMatch
impl RefUnwindSafe for CompareFacesMatch
impl Send for CompareFacesMatch
impl Sync for CompareFacesMatch
impl Unpin for CompareFacesMatch
impl UnwindSafe for CompareFacesMatch
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.