pub struct RegionView {Show 25 fields
pub index: u32,
pub order: Option<u32>,
pub label: String,
pub shape: ShapeKind,
pub text: Option<String>,
pub detail: String,
pub score: Option<f64>,
pub score_text: String,
pub track: Option<u64>,
pub track_name: Option<String>,
pub x0: f64,
pub y0: f64,
pub x1: f64,
pub y1: f64,
pub box_text: String,
pub mask: Option<MaskView>,
pub polygon: Vec<[f64; 2]>,
pub tag: String,
pub heading: String,
pub facts: Vec<Fact>,
pub chain: Vec<String>,
pub escalation: Option<EscalationView>,
pub measurement: Option<String>,
pub at_edge: bool,
pub blurred: bool,
}Expand description
One region of an answer, as the viewer draws and lists it.
Fields§
§index: u32Its place in the answer’s RegionSet: what an example and the export name.
order: Option<u32>Its place in reading order, from 1, for a page.
label: StringThe label or block kind: “handwriting”, “seal tear”.
shape: ShapeKindThe shape’s kind.
text: Option<String>The text it reads, for a page’s block.
detail: StringThe list’s quieter words: the text, “mask · 14.3 mm”, “box · at the edge”.
score: Option<f64>The score.
score_text: StringThe score as the list shows it: “0.58”.
track: Option<u64>The track, for a video frame.
track_name: Option<String>“T4”.
x0: f64Left edge in source pixels.
y0: f64Top edge in source pixels.
x1: f64Right edge in source pixels, exclusive.
y1: f64Bottom edge in source pixels, exclusive.
box_text: StringThe box as the details show it: 1250, 466 → 1532, 540, in source pixels.
mask: Option<MaskView>The mask, when the shape is one.
polygon: Vec<[f64; 2]>The polygon’s points, when the shape is one.
tag: StringThe tag over the picture: “part · 0.96”, “seal tear · 0.91 · 14.3 mm”.
heading: StringThe details’ heading: “5 · handwriting”, “Seal tear”, “T4 · forklift”.
facts: Vec<Fact>The details, in order (board choices V4, V5, V6).
chain: Vec<String>The transform chain as steps (board choice V4).
escalation: Option<EscalationView>A value an escalation replaced.
measurement: Option<String>Its measurement in one line: “14.3 mm”.
at_edge: boolIt touches the picture’s edge.
blurred: boolIts pixels are blurred in the picture: a person.
Trait Implementations§
Source§impl Clone for RegionView
impl Clone for RegionView
Source§impl Debug for RegionView
impl Debug for RegionView
Source§impl<'de> Deserialize<'de> for RegionView
impl<'de> Deserialize<'de> for RegionView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for RegionView
impl JsonSchema for RegionView
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for RegionView
impl PartialEq for RegionView
Source§impl Serialize for RegionView
impl Serialize for RegionView
impl StructuralPartialEq for RegionView
Auto Trait Implementations§
impl Forget for RegionView
impl Freeze for RegionViewwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<[f64; 2]>: Freeze,
PhantomData<Fact>: Freeze,
PhantomData<String>: Freeze,
impl Move for RegionView
impl RefUnwindSafe for RegionView
impl Send for RegionViewwhere
RawVecInner: Send,
impl Sync for RegionViewwhere
RawVecInner: Sync,
impl Unpin for RegionView
impl UnsafeUnpin for RegionViewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<[f64; 2]>: UnsafeUnpin,
PhantomData<Fact>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for RegionViewwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> ⓘ
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> ⓘ
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 more