btcpay_client/models/
api_key_data.rs

1/*
2 * BTCPay Greenfield API
3 *
4 * A full API to use your BTCPay Server
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct ApiKeyData {
16    /// The API Key to use for API Key Authentication
17    #[serde(rename = "apiKey", skip_serializing_if = "Option::is_none")]
18    pub api_key: Option<String>,
19    /// The label given by the user to this API Key
20    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
21    pub label: Option<String>,
22    /// The permissions associated to this API Key
23    #[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]
24    pub permissions: Option<Vec<String>>,
25}
26
27impl ApiKeyData {
28    pub fn new() -> ApiKeyData {
29        ApiKeyData {
30            api_key: None,
31            label: None,
32            permissions: None,
33        }
34    }
35}
36
37