btcpay_client/models/store_user_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 StoreUserData {
16 /// The id of the user
17 #[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
18 pub user_id: Option<String>,
19 /// The role of the user. Default roles are `Owner` and `Guest`
20 #[serde(rename = "role", skip_serializing_if = "Option::is_none")]
21 pub role: Option<String>,
22}
23
24impl StoreUserData {
25 pub fn new() -> StoreUserData {
26 StoreUserData {
27 user_id: None,
28 role: None,
29 }
30 }
31}
32
33