pub struct PreviewOutput {Show 24 fields
pub path: String,
pub format: String,
pub kind: String,
pub output: Option<String>,
pub encoding: String,
pub width: u32,
pub height: u32,
pub bytes: u64,
pub xxh3: String,
pub verified: bool,
pub image: Option<ImagePreview>,
pub trace: Option<TracePreview>,
pub spectrum: Option<SpectrumPreview>,
pub chromatogram: Option<ChromatogramPreview>,
pub plate: Option<PlatePreview>,
pub events: Option<EventsPreview>,
pub panels: Vec<PlotPanel>,
pub marks: Vec<DataMark>,
pub objects: Option<Objects>,
pub lanes: Option<Lanes>,
pub annotations: Vec<DrawnAnnotation>,
pub notes: Vec<String>,
pub hint: Option<String>,
pub save: Option<String>,
}Expand description
Output of preview: what was rendered, and where it went.
Fields§
§path: StringThe input file.
format: StringFormat id of the input file.
kind: Stringimage, trace, chromatogram, spectrum, plate or events.
output: Option<String>The written file (CLI); absent when the preview is returned inline (MCP image content).
encoding: Stringpng, jpeg or svg.
width: u32Image width in pixels.
height: u32Image height in pixels.
bytes: u64Size of the encoded image.
xxh3: Stringxxh3-128 of the encoded bytes, 32 hex chars (identical across runs for the same request).
verified: boolTrue once a written file was read back and matched.
image: Option<ImagePreview>Present for image previews.
trace: Option<TracePreview>Present for trace previews.
spectrum: Option<SpectrumPreview>Present for spectrum previews.
chromatogram: Option<ChromatogramPreview>Present for chromatogram previews (a mass-spectrometry run’s total-ion chromatogram).
plate: Option<PlatePreview>Present for plate previews.
events: Option<EventsPreview>Present for event previews.
panels: Vec<PlotPanel>Plot panels (traces, spectra, plate curves, events): where each sits in the picture and the data range it shows.
marks: Vec<DataMark>Marks drawn from the data (labelled peaks, action potentials).
objects: Option<Objects>marks: objects: the objects counted in the area shown, as stats objects (the first
20 listed).
lanes: Option<Lanes>marks: lanes: the lanes and bands found in the area shown, as stats lanes.
annotations: Vec<DrawnAnnotation>The caller’s annotations as drawn: each as given, plus where it landed in PNG pixels.
notes: Vec<String>Anything the caller should know (fallbacks, caps, implied options).
hint: Option<String>What to do next with the picture (look at it; zoom with a region read off the rulers).
save: Option<String>How to save this picture to a file (MCP: the openreadout_export call).
Trait Implementations§
Source§impl Clone for PreviewOutput
impl Clone for PreviewOutput
Source§impl Debug for PreviewOutput
impl Debug for PreviewOutput
Source§impl Default for PreviewOutput
impl Default for PreviewOutput
Source§impl<'de> Deserialize<'de> for PreviewOutput
impl<'de> Deserialize<'de> for PreviewOutput
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 PreviewOutput
impl JsonSchema for PreviewOutput
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 moreAuto Trait Implementations§
impl Freeze for PreviewOutput
impl RefUnwindSafe for PreviewOutput
impl Send for PreviewOutput
impl Sync for PreviewOutput
impl Unpin for PreviewOutput
impl UnsafeUnpin for PreviewOutput
impl UnwindSafe for PreviewOutput
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
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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