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

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

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AssetUsageAccessType {
    #[serde(rename = "r")]
    R,
    #[serde(rename = "w")]
    W,
    #[serde(rename = "rw")]
    Rw,

}

impl std::fmt::Display for AssetUsageAccessType {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::R => write!(f, "r"),
            Self::W => write!(f, "w"),
            Self::Rw => write!(f, "rw"),
        }
    }
}

impl Default for AssetUsageAccessType {
    fn default() -> AssetUsageAccessType {
        Self::R
    }
}

