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};

/// ApiScopeInfo : ApiScopeInfo describes one scope for people and agents choosing scopes.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ApiScopeInfo {
    /// Whether the scope reads or writes the resource.
    #[serde(rename = "access", skip_serializing_if = "Option::is_none")]
    pub access: Option<models::ApiScopeAccess>,
    /// What the scope allows.
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// The scope string as it appears in OAuth grants and error messages (e.g. links:read).
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The resource the scope covers (e.g. links).
    #[serde(rename = "resource", skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
    /// The scope.
    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
    pub scope: Option<models::ApiScope>,
}

impl ApiScopeInfo {
    /// ApiScopeInfo describes one scope for people and agents choosing scopes.
    pub fn new() -> ApiScopeInfo {
        ApiScopeInfo {
            access: None,
            description: None,
            name: None,
            resource: None,
            scope: None,
        }
    }
}