pub trait ConfigurationFile<T> {
const FILENAME: &'static str;
// Required methods
fn from_directory(monorepo_root: &Path, directory: &Path) -> Result<T>;
fn directory(&self) -> PathBuf;
fn path(&self) -> PathBuf;
fn write(&self) -> Result<()>;
}
Expand description
Configuration file for some component of the monorepo.
Required Associated Constants§
Required Methods§
sourcefn from_directory(monorepo_root: &Path, directory: &Path) -> Result<T>
fn from_directory(monorepo_root: &Path, directory: &Path) -> Result<T>
Create an instance of this configuration file by reading the specified file from this directory on disk.