pub struct TypeDef {
pub description: String,
pub kind: Option<TypeKind>,
pub parent: Option<TypeId>,
pub mime: Option<String>,
pub parameters: Vec<String>,
pub required_files: Vec<String>,
pub columns: Option<String>,
}Expand description
One entry in the type vocabulary (from types.toml).
Fields§
§description: String§kind: Option<TypeKind>Set on root types (file, dir, blast_db, …); mutually exclusive with parent.
parent: Option<TypeId>Parent type id; mutually exclusive with kind.
mime: Option<String>§parameters: Vec<String>Named parameters this type accepts (e.g. ["alphabet"] for fasta).
required_files: Vec<String>Required file globs for composite directory types.
columns: Option<String>Semantic column layout for tabular subtypes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeDef
impl<'de> Deserialize<'de> for TypeDef
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 TypeDef
impl RefUnwindSafe for TypeDef
impl Send for TypeDef
impl Sync for TypeDef
impl Unpin for TypeDef
impl UnsafeUnpin for TypeDef
impl UnwindSafe for TypeDef
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