#[non_exhaustive]pub struct BoundingPoly {
pub vertices: Vec<Vertex>,
pub normalized_vertices: Vec<NormalizedVertex>,
/* private fields */
}Expand description
A bounding polygon for the detected image annotation.
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.vertices: Vec<Vertex>The bounding polygon vertices.
normalized_vertices: Vec<NormalizedVertex>The bounding polygon normalized vertices.
Implementations§
Source§impl BoundingPoly
impl BoundingPoly
pub fn new() -> Self
Sourcepub fn set_vertices<T, V>(self, v: T) -> Self
pub fn set_vertices<T, V>(self, v: T) -> Self
Sourcepub fn set_normalized_vertices<T, V>(self, v: T) -> Self
pub fn set_normalized_vertices<T, V>(self, v: T) -> Self
Sets the value of normalized_vertices.
§Example
ⓘ
use google_cloud_documentai_v1::model::NormalizedVertex;
let x = BoundingPoly::new()
.set_normalized_vertices([
NormalizedVertex::default()/* use setters */,
NormalizedVertex::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for BoundingPoly
impl Clone for BoundingPoly
Source§fn clone(&self) -> BoundingPoly
fn clone(&self) -> BoundingPoly
Returns a duplicate 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 BoundingPoly
impl Debug for BoundingPoly
Source§impl Default for BoundingPoly
impl Default for BoundingPoly
Source§fn default() -> BoundingPoly
fn default() -> BoundingPoly
Returns the “default value” for a type. Read more
Source§impl Message for BoundingPoly
impl Message for BoundingPoly
Source§impl PartialEq for BoundingPoly
impl PartialEq for BoundingPoly
impl StructuralPartialEq for BoundingPoly
Auto Trait Implementations§
impl Freeze for BoundingPoly
impl RefUnwindSafe for BoundingPoly
impl Send for BoundingPoly
impl Sync for BoundingPoly
impl Unpin for BoundingPoly
impl UnwindSafe for BoundingPoly
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