pub struct ExternalReport {
pub scanner: Scanner,
pub version: String,
pub status: ExternalStatus,
pub reason: Option<NotScanned>,
pub verdict: Verdict,
pub findings: Vec<Finding>,
pub incomplete: bool,
pub content_hash: Option<String>,
pub detail: Option<String>,
}Expand description
One external scan of one skill.
Fields§
§scanner: Scanner§version: StringThe scanner’s version that ran (or would have run).
status: ExternalStatus§reason: Option<NotScanned>Set when status is ExternalStatus::NotScanned.
verdict: VerdictThe worst finding. Clean also when nothing was scanned: always
read ExternalReport::status and ExternalReport::incomplete
first.
findings: Vec<Finding>Sorted by file, line and rule.
incomplete: boolThe scanner says it did not fully scan the content (an info
finding says how much): never shown as clean.
content_hash: Option<String>crate::skills::content_hash of what was scanned.
detail: Option<String>English, one line, no paths or values: why it was not scanned, what was not understood.
Implementations§
Source§impl ExternalReport
impl ExternalReport
pub fn not_scanned( scanner: Scanner, version: &str, reason: NotScanned, detail: Option<String>, ) -> Self
pub fn not_understood(scanner: Scanner, version: &str, why: &str) -> Self
Trait Implementations§
Source§impl Clone for ExternalReport
impl Clone for ExternalReport
Source§impl Debug for ExternalReport
impl Debug for ExternalReport
Source§impl<'de> Deserialize<'de> for ExternalReport
impl<'de> Deserialize<'de> for ExternalReport
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 ExternalReport
Source§impl PartialEq for ExternalReport
impl PartialEq for ExternalReport
Source§impl Serialize for ExternalReport
impl Serialize for ExternalReport
impl StructuralPartialEq for ExternalReport
Auto Trait Implementations§
impl Forget for ExternalReport
impl Freeze for ExternalReport
impl Move for ExternalReport
impl RefUnwindSafe for ExternalReport
impl Send for ExternalReportwhere
RawVecInner: Send,
impl Sync for ExternalReportwhere
RawVecInner: Sync,
impl Unpin for ExternalReport
impl UnsafeUnpin for ExternalReportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Finding>: UnsafeUnpin,
impl UnwindSafe for ExternalReportwhere
RawVecInner: UnwindSafe,
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.