/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListAssetsByUsage200ResponseInnerInner {
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "kind")]
    pub kind: models::AssetKind,
    #[serde(rename = "access_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub access_type: Option<Option<models::AssetUsageAccessType>>,
}

impl ListAssetsByUsage200ResponseInnerInner {
    pub fn new(path: String, kind: models::AssetKind) -> ListAssetsByUsage200ResponseInnerInner {
        ListAssetsByUsage200ResponseInnerInner {
            path,
            kind,
            access_type: None,
        }
    }
}

