1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Linkbreakers API
*
* This is a documentation of all the APIs of Linkbreakers
*
* The version of the OpenAPI document: 1.149.1
*
* 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,
}
}
}