pub struct DefinitionAnalysisView {
pub definition_name: String,
pub definition_version: String,
pub publishable: bool,
pub definition_digest: Option<String>,
pub defects: Vec<DefinitionDefectView>,
}Expand description
What analysis found — all of it.
Every defect at once, never the first one (ADR-002 upstream): fixing defects one at a time spends the author’s attention on round trips.
Fields§
§definition_name: StringIdentity declared by the parsed draft.
definition_version: String§publishable: boolWhether the draft, as analyzed, could be published.
definition_digest: Option<String>Canonical hex digest the executable definition will publish with.
Present exactly when the draft is publishable. This is the same
identity PublishedDefinitionView::digest returns and ceremony
instances bind to; it is not a hash of the source bytes.
defects: Vec<DefinitionDefectView>Trait Implementations§
Source§impl Clone for DefinitionAnalysisView
impl Clone for DefinitionAnalysisView
Source§fn clone(&self) -> DefinitionAnalysisView
fn clone(&self) -> DefinitionAnalysisView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefinitionAnalysisView
impl Debug for DefinitionAnalysisView
Source§impl<'de> Deserialize<'de> for DefinitionAnalysisView
impl<'de> Deserialize<'de> for DefinitionAnalysisView
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
impl Eq for DefinitionAnalysisView
Source§impl PartialEq for DefinitionAnalysisView
impl PartialEq for DefinitionAnalysisView
Source§impl Serialize for DefinitionAnalysisView
impl Serialize for DefinitionAnalysisView
impl StructuralPartialEq for DefinitionAnalysisView
Auto Trait Implementations§
impl Freeze for DefinitionAnalysisView
impl RefUnwindSafe for DefinitionAnalysisView
impl Send for DefinitionAnalysisView
impl Sync for DefinitionAnalysisView
impl Unpin for DefinitionAnalysisView
impl UnsafeUnpin for DefinitionAnalysisView
impl UnwindSafe for DefinitionAnalysisView
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