pub struct ConventionFinding {
pub file_path: PathBuf,
pub detector_name: String,
pub nature: KnowledgeNature,
pub kind: FindingKind,
pub description: String,
pub evidence: Vec<CodeEvidence>,
pub follows_convention: bool,
}Expand description
Output of a single convention detector for a single file.
Lives in seshat-core because it flows: detectors -> storage -> graph.
Fields§
§file_path: PathBuf§detector_name: String§nature: KnowledgeNature§kind: FindingKindStructural classification — see FindingKind. Defaults to
FindingKind::Other for backward-compat deserialisation of
older DB rows.
description: String§evidence: Vec<CodeEvidence>§follows_convention: boolWhether this file follows the detected convention pattern.
Trait Implementations§
Source§impl Clone for ConventionFinding
impl Clone for ConventionFinding
Source§fn clone(&self) -> ConventionFinding
fn clone(&self) -> ConventionFinding
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 ConventionFinding
impl Debug for ConventionFinding
Source§impl<'de> Deserialize<'de> for ConventionFinding
impl<'de> Deserialize<'de> for ConventionFinding
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
Auto Trait Implementations§
impl Freeze for ConventionFinding
impl RefUnwindSafe for ConventionFinding
impl Send for ConventionFinding
impl Sync for ConventionFinding
impl Unpin for ConventionFinding
impl UnsafeUnpin for ConventionFinding
impl UnwindSafe for ConventionFinding
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