pub struct ToolsConfig {
pub tool_sets: Vec<ToolSetConfig>,
}Fields§
§tool_sets: Vec<ToolSetConfig>Implementations§
Source§impl ToolsConfig
impl ToolsConfig
pub fn empty() -> Self
pub fn merge(&mut self, other: ToolsConfig)
pub fn add_installed_command( &mut self, command: String, crate_name: String, git: Option<String>, path: Option<String>, )
pub fn from_json(json: &str) -> Result<Self, Error>
pub fn from_env() -> Result<Self, Box<dyn Error>>
pub fn from_file( path: impl AsRef<Path>, ) -> Result<Self, Box<dyn Error + Send + Sync>>
Trait Implementations§
Source§impl Clone for ToolsConfig
impl Clone for ToolsConfig
Source§impl Debug for ToolsConfig
impl Debug for ToolsConfig
Source§impl<'de> Deserialize<'de> for ToolsConfig
impl<'de> Deserialize<'de> for ToolsConfig
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 ToolsConfig
impl RefUnwindSafe for ToolsConfig
impl Send for ToolsConfig
impl Sync for ToolsConfig
impl Unpin for ToolsConfig
impl UnsafeUnpin for ToolsConfig
impl UnwindSafe for ToolsConfig
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