pub struct ScanResponse {
pub results: Vec<ScanResult>,
pub coverage: Option<Coverage>,
pub policy_version: Option<String>,
pub request_id: Option<String>,
}Expand description
Response from POST /v1/scan. One ScanResult per requested package.
Fields§
§results: Vec<ScanResult>§coverage: Option<Coverage>CLEANLIB-652 (CX-3) part 3b: per-request coverage. None on v1 / pre-part-3b
responses (struct-level #[serde(default)] → back-compat).
policy_version: Option<String>CLEANLIB-669 [SibSurface-pre-emption]: the active policy-bundle version for
this scan request — the App emits it TOP-LEVEL on the /v1/scan response
(sibling of results/coverage, App PR #378), per-request not per-result.
Without this field the client silently DROPS it at parse (the same
App-emit-needs-Client-consume pairing as [SibSurface]). None on v1 /
envelope-v2-off (#[serde(default)] → back-compat).
request_id: Option<String>CLEANLIB-480 · the x-request-id header the App emits on every
response — populated from the RESPONSE HEADER by
transport::Client::scan. See PolicyPreviewResponse::request_id
for the rationale.
Trait Implementations§
Source§impl Clone for ScanResponse
impl Clone for ScanResponse
Source§fn clone(&self) -> ScanResponse
fn clone(&self) -> ScanResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more