/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 3.1.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// 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.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UnboundDelegateChecklistEntry {
#[serde(rename = "key_kind")]
pub key_kind: models::DelegateKeyKind,
#[serde(rename = "key")]
pub key: String,
#[serde(rename = "occurrences")]
pub occurrences: Vec<models::DelegateOccurrence>,
}
impl 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.
pub fn new(key_kind: models::DelegateKeyKind, key: String, occurrences: Vec<models::DelegateOccurrence>) -> UnboundDelegateChecklistEntry {
UnboundDelegateChecklistEntry {
key_kind,
key,
occurrences,
}
}
}