pub struct Diagnostics { /* private fields */ }Expand description
Container for diagnostic check results and configuration.
This struct holds both the configuration for which diagnostics to run (via ignore lists) and the results of the diagnostic check.
§Filtering
Use the ignore fields to exclude certain items from diagnostic checks:
folders_ignored: Skip entire folder trees (e.g., “db/deprecated_tables”)files_ignored: Skip specific files by pathfields_ignored: Skip specific table columns (format: “table_name/field_name”)diagnostics_ignored: Skip specific diagnostic types by identifier
Implementations§
Source§impl Diagnostics
impl Diagnostics
Sourcepub fn folders_ignored(&self) -> &Vec<String>
pub fn folders_ignored(&self) -> &Vec<String>
Folder paths to exclude from diagnostic checks.
Files within these folders (and subfolders) will not be checked.
Sourcepub fn files_ignored(&self) -> &Vec<String>
pub fn files_ignored(&self) -> &Vec<String>
File paths to exclude from diagnostic checks.
Sourcepub fn fields_ignored(&self) -> &Vec<String>
pub fn fields_ignored(&self) -> &Vec<String>
Table fields to exclude from diagnostic checks.
Format: “table_name/field_name” (e.g., “units_tables/key”)
Sourcepub fn diagnostics_ignored(&self) -> &Vec<String>
pub fn diagnostics_ignored(&self) -> &Vec<String>
Diagnostic type identifiers to skip.
Use this to disable specific checks that produce false positives or are not relevant to your mod.
Sourcepub fn results(&self) -> &Vec<DiagnosticType>
pub fn results(&self) -> &Vec<DiagnosticType>
The diagnostic results from the most recent check.
Source§impl Diagnostics
impl Diagnostics
Sourcepub fn folders_ignored_mut(&mut self) -> &mut Vec<String>
pub fn folders_ignored_mut(&mut self) -> &mut Vec<String>
Folder paths to exclude from diagnostic checks.
Files within these folders (and subfolders) will not be checked.
Sourcepub fn files_ignored_mut(&mut self) -> &mut Vec<String>
pub fn files_ignored_mut(&mut self) -> &mut Vec<String>
File paths to exclude from diagnostic checks.
Sourcepub fn fields_ignored_mut(&mut self) -> &mut Vec<String>
pub fn fields_ignored_mut(&mut self) -> &mut Vec<String>
Table fields to exclude from diagnostic checks.
Format: “table_name/field_name” (e.g., “units_tables/key”)
Sourcepub fn diagnostics_ignored_mut(&mut self) -> &mut Vec<String>
pub fn diagnostics_ignored_mut(&mut self) -> &mut Vec<String>
Diagnostic type identifiers to skip.
Use this to disable specific checks that produce false positives or are not relevant to your mod.
Sourcepub fn results_mut(&mut self) -> &mut Vec<DiagnosticType>
pub fn results_mut(&mut self) -> &mut Vec<DiagnosticType>
The diagnostic results from the most recent check.
Source§impl Diagnostics
impl Diagnostics
Sourcepub fn check(
&mut self,
packs: &mut BTreeMap<String, Pack>,
dependencies: &mut Dependencies,
schema: &Schema,
game_info: &GameInfo,
game_path: &Path,
paths_to_check: &[ContainerPath],
check_ak_only_refs: bool,
)
pub fn check( &mut self, packs: &mut BTreeMap<String, Pack>, dependencies: &mut Dependencies, schema: &Schema, game_info: &GameInfo, game_path: &Path, paths_to_check: &[ContainerPath], check_ak_only_refs: bool, )
This function performs a search over the parts of the provided Packs, storing his results.
Trait Implementations§
Source§impl Clone for Diagnostics
impl Clone for Diagnostics
Source§fn clone(&self) -> Diagnostics
fn clone(&self) -> Diagnostics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Diagnostics
impl Debug for Diagnostics
Source§impl Default for Diagnostics
impl Default for Diagnostics
Source§fn default() -> Diagnostics
fn default() -> Diagnostics
Source§impl<'de> Deserialize<'de> for Diagnostics
impl<'de> Deserialize<'de> for Diagnostics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Diagnostics
impl RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl UnsafeUnpin for Diagnostics
impl UnwindSafe for Diagnostics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.