pub struct EnvironmentCatalog {
pub version: String,
pub environments: Vec<Environment>,
pub tags: HashMap<String, String>,
pub difficulty_levels: HashMap<String, String>,
}Fields§
§version: String§environments: Vec<Environment>§difficulty_levels: HashMap<String, String>Implementations§
Source§impl EnvironmentCatalog
impl EnvironmentCatalog
Sourcepub fn load_default(robot_tasks_dir: &Path) -> Result<Self>
pub fn load_default(robot_tasks_dir: &Path) -> Result<Self>
Load the catalog from <robot_tasks_dir>/catalog.json, under a freshly-fetched
mecha10-assets extraction (configs/simulation/environments/robot-tasks). The caller
is responsible for fetching/extracting the assets tarball (see
EnvironmentSelector::new) - this no longer falls back to any bundled-in-the-monorepo
copy, since mecha10-templates/templates/configs/simulation/... was deleted when the
framework cut over to fetching published mecha10-assets content live.
Trait Implementations§
Source§impl Clone for EnvironmentCatalog
impl Clone for EnvironmentCatalog
Source§impl Debug for EnvironmentCatalog
impl Debug for EnvironmentCatalog
Source§impl<'de> Deserialize<'de> for EnvironmentCatalog
impl<'de> Deserialize<'de> for EnvironmentCatalog
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 EnvironmentCatalog
impl RefUnwindSafe for EnvironmentCatalog
impl Send for EnvironmentCatalog
impl Sync for EnvironmentCatalog
impl Unpin for EnvironmentCatalog
impl UnsafeUnpin for EnvironmentCatalog
impl UnwindSafe for EnvironmentCatalog
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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