pub struct SpectrumMetadata {Show 14 fields
pub measurement_type: MeasurementType,
pub date: String,
pub title: Option<String>,
pub description: Option<String>,
pub sample_id: Option<String>,
pub time: Option<String>,
pub operator: Option<String>,
pub instrument: Option<Instrument>,
pub measurement_conditions: Option<MeasurementConditions>,
pub surface: Option<String>,
pub sample_backing: Option<String>,
pub tags: Option<Vec<String>>,
pub copyright: Option<String>,
pub custom: Option<Value>,
}Expand description
Descriptive metadata for one spectrum.
Fields§
§measurement_type: MeasurementType§date: StringISO 8601 date (YYYY-MM-DD).
title: Option<String>§description: Option<String>§sample_id: Option<String>§time: Option<String>§operator: Option<String>§instrument: Option<Instrument>§measurement_conditions: Option<MeasurementConditions>§surface: Option<String>Type of surface for a reflective specimen (e.g. "Matte", "Gloss", "Semigloss").
sample_backing: Option<String>Backing used behind the sample during measurement (e.g. "Black", "White", "Substrate").
copyright: Option<String>Copyright notice for this spectrum (e.g. "© 2024 Acme Lab").
custom: Option<Value>Trait Implementations§
Source§impl Clone for SpectrumMetadata
impl Clone for SpectrumMetadata
Source§fn clone(&self) -> SpectrumMetadata
fn clone(&self) -> SpectrumMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpectrumMetadata
impl Debug for SpectrumMetadata
Source§impl<'de> Deserialize<'de> for SpectrumMetadata
impl<'de> Deserialize<'de> for SpectrumMetadata
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
Auto Trait Implementations§
impl Freeze for SpectrumMetadata
impl RefUnwindSafe for SpectrumMetadata
impl Send for SpectrumMetadata
impl Sync for SpectrumMetadata
impl Unpin for SpectrumMetadata
impl UnsafeUnpin for SpectrumMetadata
impl UnwindSafe for SpectrumMetadata
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