Struct dev_scope::shared::prelude::FoundConfig
source · pub struct FoundConfig {
pub working_dir: PathBuf,
pub raw_config: Vec<ModelRoot<Value>>,
pub doctor_group: BTreeMap<String, ModelRoot<DoctorGroup>>,
pub known_error: BTreeMap<String, ModelRoot<KnownError>>,
pub report_upload: BTreeMap<String, ModelRoot<ReportUploadLocation>>,
pub report_definition: Option<ModelRoot<ReportDefinition>>,
pub config_path: Vec<PathBuf>,
pub bin_path: String,
pub run_id: String,
}
Fields§
§working_dir: PathBuf
§raw_config: Vec<ModelRoot<Value>>
§doctor_group: BTreeMap<String, ModelRoot<DoctorGroup>>
§known_error: BTreeMap<String, ModelRoot<KnownError>>
§report_upload: BTreeMap<String, ModelRoot<ReportUploadLocation>>
§report_definition: Option<ModelRoot<ReportDefinition>>
§config_path: Vec<PathBuf>
§bin_path: String
§run_id: String
Implementations§
source§impl FoundConfig
impl FoundConfig
pub fn empty(working_dir: PathBuf) -> Self
pub async fn new( config_options: &ConfigOptions, working_dir: PathBuf, config_path: Vec<PathBuf> ) -> Self
pub fn write_raw_config_to_disk(&self) -> Result<PathBuf>
pub fn get_report_definition(&self) -> ReportDefinition
Trait Implementations§
source§impl Clone for FoundConfig
impl Clone for FoundConfig
source§fn clone(&self) -> FoundConfig
fn clone(&self) -> FoundConfig
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for FoundConfig
impl Send for FoundConfig
impl Sync for FoundConfig
impl Unpin for FoundConfig
impl UnwindSafe for FoundConfig
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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