linkbreakers 1.146.0

Official Rust SDK for the Linkbreakers API
Documentation
/*
 * Linkbreakers API
 *
 * This is a documentation of all the APIs of Linkbreakers
 *
 * The version of the OpenAPI document: 1.146.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// ApiScopeAccess : ApiScopeAccess is what a scope allows on its resource.   - API_SCOPE_ACCESS_UNSPECIFIED: Not set.  - API_SCOPE_ACCESS_READ: Reads only.  - API_SCOPE_ACCESS_WRITE: Reads and writes.
/// ApiScopeAccess is what a scope allows on its resource.   - API_SCOPE_ACCESS_UNSPECIFIED: Not set.  - API_SCOPE_ACCESS_READ: Reads only.  - API_SCOPE_ACCESS_WRITE: Reads and writes.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ApiScopeAccess {
    #[serde(rename = "API_SCOPE_ACCESS_UNSPECIFIED")]
    ApiScopeAccessUnspecified,
    #[serde(rename = "API_SCOPE_ACCESS_READ")]
    ApiScopeAccessRead,
    #[serde(rename = "API_SCOPE_ACCESS_WRITE")]
    ApiScopeAccessWrite,

}

impl std::fmt::Display for ApiScopeAccess {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::ApiScopeAccessUnspecified => write!(f, "API_SCOPE_ACCESS_UNSPECIFIED"),
            Self::ApiScopeAccessRead => write!(f, "API_SCOPE_ACCESS_READ"),
            Self::ApiScopeAccessWrite => write!(f, "API_SCOPE_ACCESS_WRITE"),
        }
    }
}

impl Default for ApiScopeAccess {
    fn default() -> ApiScopeAccess {
        Self::ApiScopeAccessUnspecified
    }
}