pub struct ResolvedEnvironment {
pub name: String,
pub search: Vec<SearchServiceConfig>,
pub foundry: Vec<FoundryServiceConfig>,
pub sync: SyncConfig,
}Expand description
Resolved environment for command execution.
Central abstraction all commands work through. Created by Config::resolve_env().
Fields§
§name: String§search: Vec<SearchServiceConfig>§foundry: Vec<FoundryServiceConfig>§sync: SyncConfigImplementations§
Source§impl ResolvedEnvironment
impl ResolvedEnvironment
Sourcepub fn search_service_dir(
&self,
root: &Path,
service: &SearchServiceConfig,
) -> PathBuf
pub fn search_service_dir( &self, root: &Path, service: &SearchServiceConfig, ) -> PathBuf
Base dir for a search service: search/ (single) or search/
Sourcepub fn foundry_service_dir(
&self,
root: &Path,
service: &FoundryServiceConfig,
) -> PathBuf
pub fn foundry_service_dir( &self, root: &Path, service: &FoundryServiceConfig, ) -> PathBuf
Base dir for a foundry service: foundry/ (single) or foundry/
pub fn primary_search_service(&self) -> Option<&SearchServiceConfig>
pub fn has_foundry(&self) -> bool
pub fn has_search(&self) -> bool
Auto Trait Implementations§
impl Freeze for ResolvedEnvironment
impl RefUnwindSafe for ResolvedEnvironment
impl Send for ResolvedEnvironment
impl Sync for ResolvedEnvironment
impl Unpin for ResolvedEnvironment
impl UnsafeUnpin for ResolvedEnvironment
impl UnwindSafe for ResolvedEnvironment
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