Struct mongo_task_generator::ProjectInfo
source · [−]pub struct ProjectInfo {
pub evg_project_location: PathBuf,
pub evg_project: String,
pub gen_sub_tasks_config_file: Option<PathBuf>,
}
Expand description
Information about the Evergreen project being run against.
Fields
evg_project_location: PathBuf
Path to the evergreen project configuration yaml.
evg_project: String
Evergreen project being run.
gen_sub_tasks_config_file: Option<PathBuf>
Path to the sub-tasks configuration file.
Implementations
sourceimpl ProjectInfo
impl ProjectInfo
sourcepub fn new<P: AsRef<Path>>(
evg_project_location: P,
evg_project: &str,
gen_sub_tasks_config_file: Option<P>
) -> Self
pub fn new<P: AsRef<Path>>(
evg_project_location: P,
evg_project: &str,
gen_sub_tasks_config_file: Option<P>
) -> Self
sourcepub fn get_project_config(&self) -> Result<EvgProjectConfig>
pub fn get_project_config(&self) -> Result<EvgProjectConfig>
Get the project configuration for this project.
sourcepub fn get_generate_sub_tasks_config(
&self
) -> Result<Option<GenerateSubTasksConfig>>
pub fn get_generate_sub_tasks_config(
&self
) -> Result<Option<GenerateSubTasksConfig>>
Get the generate sub-task configuration for this project.
Auto Trait Implementations
impl RefUnwindSafe for ProjectInfo
impl Send for ProjectInfo
impl Sync for ProjectInfo
impl Unpin for ProjectInfo
impl UnwindSafe for ProjectInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more