orvanta_api/models/unbound_delegate_checklist_entry.rs
1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 3.2.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// UnboundDelegateChecklistEntry : One row of the unbound-delegate checklist -- a distinct `(key_kind, key)` with no binding row yet, and every place it is referenced from.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UnboundDelegateChecklistEntry {
17 #[serde(rename = "key_kind")]
18 pub key_kind: models::DelegateKeyKind,
19 #[serde(rename = "key")]
20 pub key: String,
21 #[serde(rename = "occurrences")]
22 pub occurrences: Vec<models::DelegateOccurrence>,
23}
24
25impl UnboundDelegateChecklistEntry {
26 /// One row of the unbound-delegate checklist -- a distinct `(key_kind, key)` with no binding row yet, and every place it is referenced from.
27 pub fn new(key_kind: models::DelegateKeyKind, key: String, occurrences: Vec<models::DelegateOccurrence>) -> UnboundDelegateChecklistEntry {
28 UnboundDelegateChecklistEntry {
29 key_kind,
30 key,
31 occurrences,
32 }
33 }
34}
35