Skip to main content

ory_kratos_client/models/
flow_error.rs

1/*
2 * Ory Identities API
3 *
4 * This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more. 
5 *
6 * The version of the OpenAPI document: v26.2.0
7 * Contact: office@ory.sh
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct FlowError {
16    /// CreatedAt is a helper struct field for gobuffalo.pop.
17    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
18    pub created_at: Option<String>,
19    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
20    pub error: Option<serde_json::Value>,
21    /// ID of the error container.
22    #[serde(rename = "id")]
23    pub id: String,
24    /// UpdatedAt is a helper struct field for gobuffalo.pop.
25    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
26    pub updated_at: Option<String>,
27}
28
29impl FlowError {
30    pub fn new(id: String) -> FlowError {
31        FlowError {
32            created_at: None,
33            error: None,
34            id,
35            updated_at: None,
36        }
37    }
38}
39