pub struct ToolEnvironment {
pub config: Arc<Config>,
pub credentials: Arc<Credentials>,
pub search: Option<Service>,
pub config_file: Option<PathBuf>,
pub host: ToolHost,
}Expand description
What a board needs to build its tools: the loaded configuration and the credential sources, as the dashboards receive them.
Fields§
§config: Arc<Config>§credentials: Arc<Credentials>§search: Option<Service>§config_file: Option<PathBuf>The file config was read from, for a tool that edits its board’s
own section. None when the consumer has no file, as in tests.
host: ToolHostTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolEnvironment
impl !UnwindSafe for ToolEnvironment
impl Forget for ToolEnvironment
impl Freeze for ToolEnvironment
impl Move for ToolEnvironment
impl Send for ToolEnvironment
impl Sync for ToolEnvironment
impl Unpin for ToolEnvironment
impl UnsafeUnpin for ToolEnvironment
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