Skip to main content

gitbundle_sdk/models/
two_factor_get_output.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TwoFactorGetOutput {
17    #[serde(rename = "enabled")]
18    pub enabled: bool,
19    #[serde(rename = "qr_uri")]
20    pub qr_uri: String,
21    #[serde(rename = "secret")]
22    pub secret: String,
23}
24
25impl TwoFactorGetOutput {
26    pub fn new(enabled: bool, qr_uri: String, secret: String) -> TwoFactorGetOutput {
27        TwoFactorGetOutput {
28            enabled,
29            qr_uri,
30            secret,
31        }
32    }
33}