Skip to main content

akeyless_api/models/
target_error.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TargetError : TargetError represents a failed target scan
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TargetError {
17    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
18    pub error: Option<String>,
19    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
20    pub host: Option<String>,
21    #[serde(rename = "port", skip_serializing_if = "Option::is_none")]
22    pub port: Option<i64>,
23}
24
25impl TargetError {
26    /// TargetError represents a failed target scan
27    pub fn new() -> TargetError {
28        TargetError {
29            error: None,
30            host: None,
31            port: None,
32        }
33    }
34}
35