Skip to main content

authentik_client/models/
error_detail.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.12.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ErrorDetail : Serializer for rest_framework's error messages
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ErrorDetail {
17    #[serde(rename = "string")]
18    pub string: String,
19    #[serde(rename = "code")]
20    pub code: String,
21}
22
23impl ErrorDetail {
24    /// Serializer for rest_framework's error messages
25    pub fn new(string: String, code: String) -> ErrorDetail {
26        ErrorDetail { string, code }
27    }
28}