use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Bioformats2Raw {
#[serde(rename = "bioformats2raw.layout")]
pub layout: monostate::MustBe!(3u64),
pub series: Option<Vec<String>>,
}
#[cfg(test)]
mod tests {
use crate::v0_4::OmeNgffGroupAttributes;
use super::*;
#[test]
fn bioformats2raw_layout_image() {
let json = include_str!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/ome-zarr/specifications/0.4/examples/bf2raw/image.json"
));
let ome_metadata: OmeNgffGroupAttributes = serde_json::from_str(json).unwrap();
let _bioformats2raw: Bioformats2Raw = ome_metadata.bioformats2raw.unwrap();
}
#[test]
fn bioformats2raw_layout_plate() {
let json = include_str!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/ome-zarr/specifications/0.4/examples/bf2raw/plate.json"
));
let ome_metadata: OmeNgffGroupAttributes = serde_json::from_str(json).unwrap();
let _bioformats2raw: Bioformats2Raw = ome_metadata.bioformats2raw.unwrap();
}
}