pub struct ArtifactRetrievalDiagnostics {
pub original_pattern: String,
pub effective_pattern: String,
pub target_dir: String,
pub matched_files: Vec<String>,
}Expand description
Auditable record of an artifact-retrieval attempt under a (possibly rewritten) target dir. Printed by retrieval diagnostics and surfaced in the JSON envelope.
Fields§
§original_pattern: StringPattern as specified by the agent/classifier.
effective_pattern: StringPattern actually used for retrieval (post-rewrite).
target_dir: StringEffective remote target dir the build used.
matched_files: Vec<String>Files matched by the effective pattern (relative paths).
Implementations§
Source§impl ArtifactRetrievalDiagnostics
impl ArtifactRetrievalDiagnostics
Sourcepub fn new(rewrite: &ArtifactPatternRewrite, matched_files: Vec<String>) -> Self
pub fn new(rewrite: &ArtifactPatternRewrite, matched_files: Vec<String>) -> Self
Build from a rewrite plus the files the effective pattern matched.
Sourcepub fn miss_reason(&self) -> Option<IncidentReasonCode>
pub fn miss_reason(&self) -> Option<IncidentReasonCode>
Incident reason for a miss (for the incident ledger / status surfaces).
Trait Implementations§
Source§impl Clone for ArtifactRetrievalDiagnostics
impl Clone for ArtifactRetrievalDiagnostics
Source§impl Debug for ArtifactRetrievalDiagnostics
impl Debug for ArtifactRetrievalDiagnostics
Source§impl<'de> Deserialize<'de> for ArtifactRetrievalDiagnostics
impl<'de> Deserialize<'de> for ArtifactRetrievalDiagnostics
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 ArtifactRetrievalDiagnostics
impl StructuralPartialEq for ArtifactRetrievalDiagnostics
Auto Trait Implementations§
impl Freeze for ArtifactRetrievalDiagnostics
impl RefUnwindSafe for ArtifactRetrievalDiagnostics
impl Send for ArtifactRetrievalDiagnostics
impl Sync for ArtifactRetrievalDiagnostics
impl Unpin for ArtifactRetrievalDiagnostics
impl UnsafeUnpin for ArtifactRetrievalDiagnostics
impl UnwindSafe for ArtifactRetrievalDiagnostics
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.