authentik_rust/models/
transaction_application_response.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// TransactionApplicationResponse : Transactional creation response
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TransactionApplicationResponse {
16    #[serde(rename = "applied")]
17    pub applied: bool,
18    #[serde(rename = "logs")]
19    pub logs: Vec<String>,
20}
21
22impl TransactionApplicationResponse {
23    /// Transactional creation response
24    pub fn new(applied: bool, logs: Vec<String>) -> TransactionApplicationResponse {
25        TransactionApplicationResponse {
26            applied,
27            logs,
28        }
29    }
30}
31