pub struct ViewerView {Show 13 fields
pub session_id: String,
pub image: ViewerImage,
pub kind: PictureKind,
pub title: String,
pub meta: String,
pub agent: String,
pub agent_name: String,
pub answers: Vec<AnswerChoice>,
pub answer: Option<AnswerView>,
pub compare: Option<CompareView>,
pub caption: Option<String>,
pub min_score: f64,
pub examples: ExamplesView,
}Expand description
What the annotated viewer shows of one image in one session (spec 3.7 §8.2, X12).
Fields§
§session_id: StringThe session.
image: ViewerImageThe picture.
kind: PictureKindWhat kind of picture it is.
title: String“INV-2291 · page 1”.
meta: String“1654 × 2339 · INV-2291.pdf, page 1 at 200 dpi”.
agent: StringThe agent the back link returns to.
agent_name: StringIts display name: “Document desk”.
answers: Vec<AnswerChoice>Every answer for this image in the session, newest first.
answer: Option<AnswerView>The answer shown, when there is one.
compare: Option<CompareView>Two answers side by side, when asked.
caption: Option<String>A feature’s line under the picture.
min_score: f64The score a region needs to be shown at first.
examples: ExamplesViewSaving labelled examples.
Trait Implementations§
Source§impl Clone for ViewerView
impl Clone for ViewerView
Source§impl Debug for ViewerView
impl Debug for ViewerView
Source§impl<'de> Deserialize<'de> for ViewerView
impl<'de> Deserialize<'de> for ViewerView
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ViewerView
impl JsonSchema for ViewerView
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ViewerView
impl PartialEq for ViewerView
Source§impl Serialize for ViewerView
impl Serialize for ViewerView
impl StructuralPartialEq for ViewerView
Auto Trait Implementations§
impl Forget for ViewerView
impl Freeze for ViewerViewwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AnswerChoice>: Freeze,
PhantomData<RegionView>: Freeze,
PhantomData<LabelCount>: Freeze,
PhantomData<String>: Freeze,
PhantomData<FactPart>: Freeze,
PhantomData<Fact>: Freeze,
PhantomData<MeasureTile>: Freeze,
PhantomData<TrackView>: Freeze,
PhantomData<CompareMark>: Freeze,
PhantomData<Difference>: Freeze,
impl Move for ViewerView
impl RefUnwindSafe for ViewerView
impl Send for ViewerViewwhere
RawVecInner: Send,
impl Sync for ViewerViewwhere
RawVecInner: Sync,
impl Unpin for ViewerView
impl UnsafeUnpin for ViewerViewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AnswerChoice>: UnsafeUnpin,
PhantomData<RegionView>: UnsafeUnpin,
PhantomData<LabelCount>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<FactPart>: UnsafeUnpin,
PhantomData<Fact>: UnsafeUnpin,
PhantomData<MeasureTile>: UnsafeUnpin,
PhantomData<TrackView>: UnsafeUnpin,
PhantomData<CompareMark>: UnsafeUnpin,
PhantomData<Difference>: UnsafeUnpin,
impl UnwindSafe for ViewerViewwhere
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
Mutably borrows from an owned value. Read more
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> ⓘ
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 more