pub struct QualityAnswer {
pub measured: bool,
pub reason: Option<String>,
pub report: QualityReport,
pub passes: bool,
pub baselined: usize,
}Expand description
The answer: the measurement, or the reason there was not one.
Fields§
§measured: boolWhether a crate was found and measured. false is a complete answer, not a failure:
the layer installs into repositories that carry no Rust crate, and a doctrine that
cannot apply is not a violation.
reason: Option<String>Why nothing was measured, when nothing was.
report: QualityReportThe measurement. Present and empty-of-findings when measured is false, so that a
consumer reads one shape either way and measured is the only question it must ask.
passes: boolWhether the report as filtered leaves nothing blocking. Answered here so that a caller over any transport reads the verdict rather than deriving it, and so that the command line’s exit code and this field can never disagree.
baselined: usizeThe findings the ratchet accepts because they stood when the rule landed. A finding outside this count is what fails the gate.
Trait Implementations§
Source§impl Clone for QualityAnswer
impl Clone for QualityAnswer
Source§fn clone(&self) -> QualityAnswer
fn clone(&self) -> QualityAnswer
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 QualityAnswer
impl Debug for QualityAnswer
Source§impl<'de> Deserialize<'de> for QualityAnswer
impl<'de> Deserialize<'de> for QualityAnswer
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>,
impl Eq for QualityAnswer
Source§impl JsonSchema for QualityAnswer
impl JsonSchema for QualityAnswer
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for QualityAnswer
impl PartialEq for QualityAnswer
Source§fn eq(&self, other: &QualityAnswer) -> bool
fn eq(&self, other: &QualityAnswer) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for QualityAnswer
impl Serialize for QualityAnswer
impl StructuralPartialEq for QualityAnswer
Auto Trait Implementations§
impl Freeze for QualityAnswer
impl RefUnwindSafe for QualityAnswer
impl Send for QualityAnswer
impl Sync for QualityAnswer
impl Unpin for QualityAnswer
impl UnsafeUnpin for QualityAnswer
impl UnwindSafe for QualityAnswer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.