pub struct CheckInfoJson {
pub errors: Vec<String>,
pub warnings: Vec<String>,
pub lints: Vec<String>,
pub deps: Vec<String>,
pub requires: Vec<RequireJson>,
pub error_fixes: Vec<Option<FixJson>>,
pub lint_fixes: Vec<Option<FixJson>>,
pub dependency_errors: Vec<DependencyErrorJson>,
}Expand description
A CheckInfo as an entry stores it.
Deliberately a separate type from the diagnostics htl check replays: those are text
on their way to a terminal, these are the fields the runner reads back.
Fields§
§errors: Vec<String>CheckInfo::errors, verbatim.
warnings: Vec<String>CheckInfo::warnings, verbatim.
lints: Vec<String>CheckInfo::lints, verbatim.
deps: Vec<String>CheckInfo::deps as strings. PathBuf does not round-trip through JSON on every
platform; these are normalised on the way in and rebuilt on the way out.
requires: Vec<RequireJson>CheckInfo::requires, in this module’s own JSON shape.
error_fixes: Vec<Option<FixJson>>Parallel to errors, as in CheckInfo::error_fixes: error_fixes[i] belongs to
errors[i]. Stored as a full-length vector of Option rather than as the fixes
that exist, so the pairing survives without an index.
lint_fixes: Vec<Option<FixJson>>Parallel to lints, as error_fixes is to errors.
dependency_errors: Vec<DependencyErrorJson>CheckInfo::dependency_errors, so the runner reads back the whole of what the
check said. Absent in entries written before the field existed.
Implementations§
Source§impl CheckInfoJson
impl CheckInfoJson
Trait Implementations§
Source§impl Clone for CheckInfoJson
impl Clone for CheckInfoJson
Source§fn clone(&self) -> CheckInfoJson
fn clone(&self) -> CheckInfoJson
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CheckInfoJson
impl Debug for CheckInfoJson
Source§impl Default for CheckInfoJson
impl Default for CheckInfoJson
Source§fn default() -> CheckInfoJson
fn default() -> CheckInfoJson
Source§impl<'de> Deserialize<'de> for CheckInfoJson
impl<'de> Deserialize<'de> for CheckInfoJson
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 CheckInfoJson
impl RefUnwindSafe for CheckInfoJson
impl Send for CheckInfoJson
impl Sync for CheckInfoJson
impl Unpin for CheckInfoJson
impl UnsafeUnpin for CheckInfoJson
impl UnwindSafe for CheckInfoJson
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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