pub struct FormatDescriptor {
pub id: String,
pub name: String,
pub vendor: String,
pub extensions: Vec<String>,
pub family: String,
pub can_read: bool,
pub can_write: bool,
pub confidence: Confidence,
pub known_gaps: Vec<String>,
}Expand description
Static description of a format as the tool understands it.
Fields§
§id: StringShort id used on the command line, e.g. czi.
name: StringHuman name, e.g. Zeiss CZI.
vendor: StringVendor (nominative use only).
extensions: Vec<String>File extensions, lowercase, without the dot.
family: StringFamily: microscopy, mass-spectrometry, flow-cytometry, …
can_read: boolTrue when the tool can read this format.
can_write: boolTrue when export can also write this format (e.g. mzML, OME-Zarr).
confidence: ConfidenceOverall confidence in this reader.
known_gaps: Vec<String>Things this reader knowingly does not handle yet.
Trait Implementations§
Source§impl Clone for FormatDescriptor
impl Clone for FormatDescriptor
Source§impl Debug for FormatDescriptor
impl Debug for FormatDescriptor
Source§impl<'de> Deserialize<'de> for FormatDescriptor
impl<'de> Deserialize<'de> for FormatDescriptor
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 FormatDescriptor
impl JsonSchema for FormatDescriptor
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 moreAuto Trait Implementations§
impl Freeze for FormatDescriptor
impl RefUnwindSafe for FormatDescriptor
impl Send for FormatDescriptor
impl Sync for FormatDescriptor
impl Unpin for FormatDescriptor
impl UnsafeUnpin for FormatDescriptor
impl UnwindSafe for FormatDescriptor
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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