btcpay_client/models/
api_keys_create_api_key_request.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 ApiKeysCreateApiKeyRequest {
16    /// The label of the new API Key
17    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
18    pub label: Option<String>,
19    /// The permissions granted to this API Key (See API Key Authentication)
20    #[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]
21    pub permissions: Option<Vec<String>>,
22}
23
24impl ApiKeysCreateApiKeyRequest {
25    pub fn new() -> ApiKeysCreateApiKeyRequest {
26        ApiKeysCreateApiKeyRequest {
27            label: None,
28            permissions: None,
29        }
30    }
31}
32
33