pub struct Evidence {
pub id: EvidenceId,
pub repo_id: Option<RepoId>,
pub file_path: Option<String>,
pub start_line: Option<u32>,
pub end_line: Option<u32>,
pub extractor: String,
pub extractor_version: String,
pub provenance: Provenance,
pub confidence: f32,
pub observed_at_commit: Option<String>,
pub content_hash: Option<String>,
pub note: Option<String>,
}Expand description
Auditable evidence supporting a node or edge.
Fields§
§id: EvidenceIdStable evidence identifier.
repo_id: Option<RepoId>Repository in which the evidence was observed.
file_path: Option<String>Repository-relative source path.
start_line: Option<u32>Inclusive first source line.
end_line: Option<u32>Inclusive last source line.
extractor: StringExtractor identifier.
extractor_version: StringExtractor semantic version.
provenance: ProvenanceOrigin of this evidence.
confidence: f32Normalized confidence in the inclusive range from zero to one.
observed_at_commit: Option<String>Commit at which this evidence was observed.
content_hash: Option<String>Hash of the relevant source content.
note: Option<String>Bounded explanatory note without source or secrets.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Evidence
impl<'de> Deserialize<'de> for Evidence
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 JsonSchema for Evidence
impl JsonSchema for Evidence
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Evidence
Auto Trait Implementations§
impl Freeze for Evidence
impl RefUnwindSafe for Evidence
impl Send for Evidence
impl Sync for Evidence
impl Unpin for Evidence
impl UnsafeUnpin for Evidence
impl UnwindSafe for Evidence
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