Skip to main content

hanzo_client/models/
scan_view.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ScanView {
16    /// CreatedAt is when the scan ran, in Unix milliseconds.
17    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
18    pub created_at: Option<i32>,
19    /// Critical is how many findings carry the highest severity.
20    #[serde(rename = "critical", skip_serializing_if = "Option::is_none")]
21    pub critical: Option<i32>,
22    /// Files is how many files the scan read.
23    #[serde(rename = "files", skip_serializing_if = "Option::is_none")]
24    pub files: Option<i32>,
25    /// Findings is how many secrets fired across them.
26    #[serde(rename = "findings", skip_serializing_if = "Option::is_none")]
27    pub findings: Option<i32>,
28    /// High is how many findings rank high.
29    #[serde(rename = "high", skip_serializing_if = "Option::is_none")]
30    pub high: Option<i32>,
31    /// ID addresses this scan and every finding on it.
32    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
33    pub id: Option<String>,
34    /// Low is how many findings rank low.
35    #[serde(rename = "low", skip_serializing_if = "Option::is_none")]
36    pub low: Option<i32>,
37    /// Medium is how many findings rank medium.
38    #[serde(rename = "medium", skip_serializing_if = "Option::is_none")]
39    pub medium: Option<i32>,
40    /// Project is the sub-scope the scan was filed under.
41    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
42    pub project: Option<String>,
43}
44
45impl ScanView {
46    pub fn new() -> ScanView {
47        ScanView {
48            created_at: None,
49            critical: None,
50            files: None,
51            findings: None,
52            high: None,
53            id: None,
54            low: None,
55            medium: None,
56            project: None,
57        }
58    }
59}
60