pub struct FoundConfig {
pub working_dir: PathBuf,
pub raw_config: Vec<ModelRoot<Value>>,
pub doctor_group: BTreeMap<String, DoctorGroup>,
pub known_error: BTreeMap<String, KnownError>,
pub report_upload: BTreeMap<String, ReportUploadLocation>,
pub report_definition: Option<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, DoctorGroup>
§known_error: BTreeMap<String, KnownError>
§report_upload: BTreeMap<String, ReportUploadLocation>
§report_definition: Option<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 Freeze for FoundConfig
impl RefUnwindSafe for FoundConfig
impl Send for FoundConfig
impl Sync for FoundConfig
impl Unpin for FoundConfig
impl UnwindSafe for FoundConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more