pub struct ConfigWriter;Implementations§
Source§impl ConfigWriter
impl ConfigWriter
pub fn create_agent(agent: &AgentConfig, services_dir: &Path) -> Result<PathBuf>
pub fn update_agent( name: &str, agent: &AgentConfig, services_dir: &Path, ) -> Result<()>
pub fn delete_agent(name: &str, services_dir: &Path) -> Result<()>
pub fn find_agent_file( name: &str, services_dir: &Path, ) -> Result<Option<PathBuf>>
pub fn add_include(include_path: &str, config_path: &Path) -> Result<()>
Trait Implementations§
Source§impl Clone for ConfigWriter
impl Clone for ConfigWriter
Source§fn clone(&self) -> ConfigWriter
fn clone(&self) -> ConfigWriter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigWriter
impl Debug for ConfigWriter
impl Copy for ConfigWriter
Auto Trait Implementations§
impl Freeze for ConfigWriter
impl RefUnwindSafe for ConfigWriter
impl Send for ConfigWriter
impl Sync for ConfigWriter
impl Unpin for ConfigWriter
impl UnwindSafe for ConfigWriter
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