pub struct SvsMetadata {
pub mpp: Option<f64>,
pub magnification: Option<f64>,
pub vendor: Option<String>,
pub image_description: Option<String>,
pub properties: HashMap<String, String>,
}Expand description
Parsed metadata from an SVS file.
SVS files store metadata in the ImageDescription tag as a pipe-separated string with key=value pairs.
Fields§
§mpp: Option<f64>Microns per pixel (resolution)
magnification: Option<f64>Objective magnification (e.g., 20, 40)
vendor: Option<String>Scanner vendor name
image_description: Option<String>Full ImageDescription string
properties: HashMap<String, String>Additional key-value pairs from ImageDescription
Implementations§
Source§impl SvsMetadata
impl SvsMetadata
Sourcepub fn parse(description: &str) -> Self
pub fn parse(description: &str) -> Self
Parse metadata from an ImageDescription string.
SVS ImageDescription format:
Aperio Image Library vXX.X.X
width x height (macro dimensions)|AppMag = 20|MPP = 0.5|...The first line identifies the format, subsequent parts are pipe-separated with key=value pairs.
Trait Implementations§
Source§impl Clone for SvsMetadata
impl Clone for SvsMetadata
Source§fn clone(&self) -> SvsMetadata
fn clone(&self) -> SvsMetadata
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 SvsMetadata
impl Debug for SvsMetadata
Source§impl Default for SvsMetadata
impl Default for SvsMetadata
Source§fn default() -> SvsMetadata
fn default() -> SvsMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SvsMetadata
impl RefUnwindSafe for SvsMetadata
impl Send for SvsMetadata
impl Sync for SvsMetadata
impl Unpin for SvsMetadata
impl UnwindSafe for SvsMetadata
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.