pub struct EvidenceMetadata {
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>,
}Expand description
Evidence location and provenance safe for public delivery.
Explanatory notes and source bodies are deliberately absent.
Fields§
§id: EvidenceIdStable evidence identifier.
repo_id: Option<RepoId>Repository containing the observation.
file_path: Option<String>Repository-relative path, when available.
start_line: Option<u32>Inclusive first observed line.
end_line: Option<u32>Inclusive last observed line.
extractor: StringExtractor identifier.
extractor_version: StringExtractor semantic version.
provenance: ProvenanceObservation provenance.
confidence: f32Normalized confidence.
observed_at_commit: Option<String>Commit at which the location was observed.
content_hash: Option<String>Hash of relevant content, never the content itself.
Trait Implementations§
Source§impl Clone for EvidenceMetadata
impl Clone for EvidenceMetadata
Source§fn clone(&self) -> EvidenceMetadata
fn clone(&self) -> EvidenceMetadata
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 EvidenceMetadata
impl Debug for EvidenceMetadata
Source§impl<'de> Deserialize<'de> for EvidenceMetadata
impl<'de> Deserialize<'de> for EvidenceMetadata
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 From<&Evidence> for EvidenceMetadata
impl From<&Evidence> for EvidenceMetadata
Source§impl JsonSchema for EvidenceMetadata
impl JsonSchema for EvidenceMetadata
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 moreSource§impl PartialEq for EvidenceMetadata
impl PartialEq for EvidenceMetadata
Source§impl Serialize for EvidenceMetadata
impl Serialize for EvidenceMetadata
impl StructuralPartialEq for EvidenceMetadata
Auto Trait Implementations§
impl Freeze for EvidenceMetadata
impl RefUnwindSafe for EvidenceMetadata
impl Send for EvidenceMetadata
impl Sync for EvidenceMetadata
impl Unpin for EvidenceMetadata
impl UnsafeUnpin for EvidenceMetadata
impl UnwindSafe for EvidenceMetadata
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