pub struct CheckerId {
pub name: String,
pub version: u32,
}Expand description
Which checker produced a verdict, and at what version.
Versioned because a verdict is only meaningful against a specific checker: “the tests passed” means nothing without knowing which test runner said so.
Fields§
§name: StringChecker name, e.g. pytest, tsc, diff-scope.
version: u32Checker version.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CheckerId
impl<'de> Deserialize<'de> for CheckerId
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CheckerId
Rendered name@version, because a checker diagnostic that named only the
checker would be ambiguous across versions — and the version is the half
that makes the verdict reproducible.
impl Display for CheckerId
Rendered name@version, because a checker diagnostic that named only the
checker would be ambiguous across versions — and the version is the half
that makes the verdict reproducible.
impl Eq for CheckerId
Source§impl Ord for CheckerId
impl Ord for CheckerId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for CheckerId
impl PartialOrd for CheckerId
impl StructuralPartialEq for CheckerId
Auto Trait Implementations§
impl Freeze for CheckerId
impl RefUnwindSafe for CheckerId
impl Send for CheckerId
impl Sync for CheckerId
impl Unpin for CheckerId
impl UnsafeUnpin for CheckerId
impl UnwindSafe for CheckerId
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> Canonical for T
impl<T> Canonical for T
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
The canonical CBOR encoding of this value.