pub struct ScanResult {
pub ecosystem: String,
pub package: String,
pub version: String,
pub verdict: Option<Verdict>,
pub error: Option<String>,
pub customer_state: Option<String>,
pub state: Option<String>,
pub source_state: Option<String>,
pub reason_class: Option<String>,
pub attestation_status: Option<String>,
pub freshness: Option<Freshness>,
pub remediation: Option<Remediation>,
}Expand description
One entry of the POST /v1/scan response. Mirrors the App’s
verbs::ScanResult wire shape: the package coordinate is flattened
(ecosystem / package / version) alongside an optional verdict
(present on success) or error string (per-package partial failure —
the App resolves each package independently and never fails the whole
batch on one miss).
Fields§
§ecosystem: String§package: String§version: String§verdict: Option<Verdict>§error: Option<String>§customer_state: Option<String>§state: Option<String>§source_state: Option<String>§reason_class: Option<String>§attestation_status: Option<String>§freshness: Option<Freshness>§remediation: Option<Remediation>Trait Implementations§
Source§impl Clone for ScanResult
impl Clone for ScanResult
Source§fn clone(&self) -> ScanResult
fn clone(&self) -> ScanResult
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 ScanResult
impl Debug for ScanResult
Source§impl Default for ScanResult
impl Default for ScanResult
Source§fn default() -> ScanResult
fn default() -> ScanResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScanResultwhere
ScanResult: Default,
impl<'de> Deserialize<'de> for ScanResultwhere
ScanResult: Default,
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
Auto Trait Implementations§
impl Freeze for ScanResult
impl RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl UnsafeUnpin for ScanResult
impl UnwindSafe for ScanResult
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