pub struct DiscoveryCandidate {
pub id: String,
pub detector: String,
pub path: PathBuf,
pub evidence: Vec<SourceEvidence>,
pub native_identity: Option<String>,
pub raw_version: Option<RawVersionEvidence>,
pub projection: Option<CandidateProjectionSuggestion>,
pub tag: Option<CandidateTagSuggestion>,
pub diagnostics: Vec<ExtractionDiagnostic>,
pub resolution: Option<CandidateResolution>,
}Expand description
Artifact-neutral evidence emitted by any release-unit detector.
Fields§
§id: StringStable hash of detector and exact path identity.
detector: StringStable detector id, independent from adapter or ecosystem names.
path: PathBufExact workspace-relative artifact path.
evidence: Vec<SourceEvidence>All evidence used to create this candidate.
native_identity: Option<String>Manifest-native identity, when extraction succeeds.
raw_version: Option<RawVersionEvidence>Uninterpreted version evidence, when present and readable.
projection: Option<CandidateProjectionSuggestion>Projection suggestion, only when the detector has enough evidence.
tag: Option<CandidateTagSuggestion>Tag suggestion, only when the detector has enough evidence.
diagnostics: Vec<ExtractionDiagnostic>Narrow extraction diagnostics; these do not validate publication or artifact completeness.
resolution: Option<CandidateResolution>Editable independent, projection, or excluded choice.
Implementations§
Trait Implementations§
Source§impl Clone for DiscoveryCandidate
impl Clone for DiscoveryCandidate
Source§impl Debug for DiscoveryCandidate
impl Debug for DiscoveryCandidate
Source§impl<'de> Deserialize<'de> for DiscoveryCandidate
impl<'de> Deserialize<'de> for DiscoveryCandidate
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 DiscoveryCandidate
Source§impl PartialEq for DiscoveryCandidate
impl PartialEq for DiscoveryCandidate
Source§impl Serialize for DiscoveryCandidate
impl Serialize for DiscoveryCandidate
impl StructuralPartialEq for DiscoveryCandidate
Auto Trait Implementations§
impl Freeze for DiscoveryCandidate
impl RefUnwindSafe for DiscoveryCandidate
impl Send for DiscoveryCandidate
impl Sync for DiscoveryCandidate
impl Unpin for DiscoveryCandidate
impl UnsafeUnpin for DiscoveryCandidate
impl UnwindSafe for DiscoveryCandidate
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.