pub struct EnvironmentManager { /* private fields */ }Will be extracted to mockforge-workspace crate
Expand description
Environment manager for handling multiple environments
Implementationsยง
Sourceยงimpl EnvironmentManager
impl EnvironmentManager
Sourcepub fn new() -> Self
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn new() -> Self
Will be extracted to mockforge-workspace crate
Create a new empty environment manager
Sourcepub fn add_environment(&mut self, environment: Environment) -> EntityId
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn add_environment(&mut self, environment: Environment) -> EntityId
Will be extracted to mockforge-workspace crate
Add an environment
Sourcepub fn get_environment(&self, id: &EntityId) -> Option<&Environment>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_environment(&self, id: &EntityId) -> Option<&Environment>
Will be extracted to mockforge-workspace crate
Get an environment by ID
Sourcepub fn get_environment_mut(&mut self, id: &EntityId) -> Option<&mut Environment>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_environment_mut(&mut self, id: &EntityId) -> Option<&mut Environment>
Will be extracted to mockforge-workspace crate
Get a mutable environment by ID
Sourcepub fn remove_environment(
&mut self,
id: &EntityId,
) -> Result<Environment, String>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn remove_environment( &mut self, id: &EntityId, ) -> Result<Environment, String>
Will be extracted to mockforge-workspace crate
Remove an environment
Sourcepub fn get_all_environments(&self) -> Vec<&Environment>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_all_environments(&self) -> Vec<&Environment>
Will be extracted to mockforge-workspace crate
Get all environments
Sourcepub fn get_active_environment(&self) -> Option<&Environment>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_active_environment(&self) -> Option<&Environment>
Will be extracted to mockforge-workspace crate
Get the active environment
Sourcepub fn set_active_environment(&mut self, id: EntityId) -> Result<(), String>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn set_active_environment(&mut self, id: EntityId) -> Result<(), String>
Will be extracted to mockforge-workspace crate
Set the active environment
Sourcepub fn substitute_variables(&self, template: &str) -> VariableSubstitution
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn substitute_variables(&self, template: &str) -> VariableSubstitution
Will be extracted to mockforge-workspace crate
Substitute variables in a template string
Sourcepub fn validate_environment(
&self,
environment: &Environment,
) -> EnvironmentValidationResult
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn validate_environment( &self, environment: &Environment, ) -> EnvironmentValidationResult
Will be extracted to mockforge-workspace crate
Validate an environment
Sourcepub fn export_environment(
&self,
environment_id: &EntityId,
format: EnvironmentExportFormat,
) -> Result<String, String>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn export_environment( &self, environment_id: &EntityId, format: EnvironmentExportFormat, ) -> Result<String, String>
Will be extracted to mockforge-workspace crate
Export environment to specified format
Sourcepub fn import_environment(
&mut self,
json_data: &str,
) -> Result<EntityId, String>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn import_environment( &mut self, json_data: &str, ) -> Result<EntityId, String>
Will be extracted to mockforge-workspace crate
Import environment from JSON
Sourcepub fn get_stats(&self) -> EnvironmentStats
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_stats(&self) -> EnvironmentStats
Will be extracted to mockforge-workspace crate
Get environment statistics
Sourcepub fn find_environments_by_name(&self, name_query: &str) -> Vec<&Environment>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn find_environments_by_name(&self, name_query: &str) -> Vec<&Environment>
Will be extracted to mockforge-workspace crate
Find environments by name
Sourcepub fn get_all_variables(&self) -> HashMap<String, String>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_all_variables(&self) -> HashMap<String, String>
Will be extracted to mockforge-workspace crate
Get all variables across all environments
Trait Implementationsยง
Sourceยงimpl Clone for EnvironmentManager
impl Clone for EnvironmentManager
Sourceยงfn clone(&self) -> EnvironmentManager
fn clone(&self) -> EnvironmentManager
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for EnvironmentManager
impl Debug for EnvironmentManager
Auto Trait Implementationsยง
impl Freeze for EnvironmentManager
impl RefUnwindSafe for EnvironmentManager
impl Send for EnvironmentManager
impl Sync for EnvironmentManager
impl Unpin for EnvironmentManager
impl UnsafeUnpin for EnvironmentManager
impl UnwindSafe for EnvironmentManager
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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