pub struct EnvironmentSpec {
pub spec: PathBuf,
pub name: String,
pub path: PathBuf,
pub description: String,
pub body_types: Vec<BodySpec>,
pub settings: Vec<SettingsSpec>,
pub extra: HashMap<String, Value>,
}Expand description
Static description of an environment and its interfaces.
Each environment specification file contains one of these.
Fields§
§spec: PathBufFilesystem path to the environment’s static specification (this file).
name: StringName of the environment, should be universally unique.
path: PathBufFilesystem path of the environment’s executable program, relative to this file.
description: StringUser facing documentation message.
body_types: Vec<BodySpec>Specification for each type of organism.
settings: Vec<SettingsSpec>Settings menu items for the user to customize the environment.
extra: HashMap<String, Value>Environments may include extra information.
Implementations§
Trait Implementations§
Source§impl Clone for EnvironmentSpec
impl Clone for EnvironmentSpec
Source§fn clone(&self) -> EnvironmentSpec
fn clone(&self) -> EnvironmentSpec
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 EnvironmentSpec
impl Debug for EnvironmentSpec
Source§impl<'de> Deserialize<'de> for EnvironmentSpec
impl<'de> Deserialize<'de> for EnvironmentSpec
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 PartialEq for EnvironmentSpec
impl PartialEq for EnvironmentSpec
Source§fn eq(&self, other: &EnvironmentSpec) -> bool
fn eq(&self, other: &EnvironmentSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EnvironmentSpec
impl Serialize for EnvironmentSpec
impl StructuralPartialEq for EnvironmentSpec
Auto Trait Implementations§
impl Freeze for EnvironmentSpec
impl RefUnwindSafe for EnvironmentSpec
impl Send for EnvironmentSpec
impl Sync for EnvironmentSpec
impl Unpin for EnvironmentSpec
impl UnsafeUnpin for EnvironmentSpec
impl UnwindSafe for EnvironmentSpec
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