Struct aws_sdk_rekognition::types::Landmark
source · #[non_exhaustive]pub struct Landmark {
pub type: Option<LandmarkType>,
pub x: Option<f32>,
pub y: Option<f32>,
}Expand description
Indicates the location of the landmark on the face.
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.type: Option<LandmarkType>Type of landmark.
x: Option<f32>The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
y: Option<f32>The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
Implementations§
source§impl Landmark
impl Landmark
sourcepub fn type(&self) -> Option<&LandmarkType>
pub fn type(&self) -> Option<&LandmarkType>
Type of landmark.
Trait Implementations§
source§impl PartialEq for Landmark
impl PartialEq for Landmark
impl StructuralPartialEq for Landmark
Auto Trait Implementations§
impl RefUnwindSafe for Landmark
impl Send for Landmark
impl Sync for Landmark
impl Unpin for Landmark
impl UnwindSafe for Landmark
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>
Creates a shared type from an unshared type.