Skip to main content

akeyless_api/models/
item_target_association.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/// ItemTargetAssociation : and a target.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ItemTargetAssociation {
17    #[serde(rename = "assoc_id", skip_serializing_if = "Option::is_none")]
18    pub assoc_id: Option<String>,
19    #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
20    pub attributes: Option<std::collections::HashMap<String, String>>,
21    #[serde(rename = "target_id", skip_serializing_if = "Option::is_none")]
22    pub target_id: Option<i64>,
23    #[serde(rename = "target_name", skip_serializing_if = "Option::is_none")]
24    pub target_name: Option<String>,
25    #[serde(rename = "target_type", skip_serializing_if = "Option::is_none")]
26    pub target_type: Option<String>,
27}
28
29impl ItemTargetAssociation {
30    /// and a target.
31    pub fn new() -> ItemTargetAssociation {
32        ItemTargetAssociation {
33            assoc_id: None,
34            attributes: None,
35            target_id: None,
36            target_name: None,
37            target_type: None,
38        }
39    }
40}
41