harbor_api/models/
scanner_capability.rs

1/*
2 * Harbor API
3 *
4 * These APIs provide services for manipulating Harbor project.
5 *
6 * The version of the OpenAPI document: 2.0
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 ScannerCapability {
16    /// Specify the type of scanner capability, like vulnerability or sbom 
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<String>,
19    #[serde(rename = "consumes_mime_types", skip_serializing_if = "Option::is_none")]
20    pub consumes_mime_types: Option<Vec<String>>,
21    #[serde(rename = "produces_mime_types", skip_serializing_if = "Option::is_none")]
22    pub produces_mime_types: Option<Vec<String>>,
23}
24
25impl ScannerCapability {
26    pub fn new() -> ScannerCapability {
27        ScannerCapability {
28            r#type: None,
29            consumes_mime_types: None,
30            produces_mime_types: None,
31        }
32    }
33}
34